If a problem occurs in the afternoon, JNI cannot find the class. The solution is as follows:
1. System variable settings:(1) My computer-properties-advanced-Environment VariablesAdd the system variable java_home: D: \ Program Files \ Java \ jdk1.7.0
I use HTC G7 with a resolution of 480x800, but only 320x480. Because my game is a map grid of 40x40. It is reasonable to say that 12x20 grids can be displayed, but only 8x10 grids can be displayed. The same is true in the wvg800 simulator.
This
The product_locales parameter is used to control the specified package resource file.Reasonable configuration of this parameter can reduce the size of the compiled APK file, thus saving system space.
Product_locales is specific to
Today, in the android project, you need to implement a GPS or network function to obtain the longitude and latitude of the current mobile terminal device. To implement this function, you must use the locationmanager class in the android framework.
When an application is no longer used, you usually need to disable the application. You can use either of the following methods to disable the Android Application: first, obtain the ID of the current process and then kill the process. We recommend
Http://hi.baidu.com/sunyaming/blog/item/fec4450e6b0191c77acbe182.html
During development, we often need to set our applications to full screen. Here I know two methods. One is to set them in code, another way is to change it in the configuration
Sometimes, ApplicationsIt needs to run automatically at startup., For example, a background that automatically updates content from the InternetService. How can I enable applications that run automatically upon startup? When writing this article, I
1. Different LayoutThe screen sizes of Android mobile phones vary by 480X320,640x360,800 X. How can an app automatically adapt to different screens? In fact, it is very simple, just need to create different layout folder under the res directory,
On the official selenium website, I saw an article about selenium running on android phones, so I tried it myself. Take the android simulator as an example (the operation on the mobile phone will be smoother)
Configuration environment: Android sdk4
My article on TraceView performance analysis is translated from the official website. The translation address is on the eoe board wiki:
Http://wiki.eoeandroid.com/Profiling_with_Traceview_and_dmtracedump
Performance Optimization should begin
This method fills in all the data and dynamically changes the height of the listView,
Filling a part of data is equivalent to one page, and then dynamically adding data and dynamically changing the height of the ListView
Method 1:
1. Set the start
Anroid debug bridge, Android debugging bridge, or ADB for short, is mainly used for debugging bridge. Through ADB, we can install software on the simulator or the actual device, files can be transmitted between the computer and the simulator/actual
PopupWindow is displayed in the pop-up window under the android. widget package. The official document describes the control as follows: "A pop-up window control can be used to display any View and will float the top of the current activity ".
FragmentManage:
FragmentManager can manage fragment in an activity.Call getFragmentManager () of the activity to obtain its instance.FragmentManager can do the following:
1. Use findFragmentById () (used to provide a UI fragment in activity
The android. app package contains an ActivityGroup class, which is the Activity container and can contain multiple nested Activitys. This article uses the ActivityGroup function to nest the Activity to implement the Tab function. The tab UI can be
Address: http://developer.android.com/training/advanced.html
Advanced Training contains a variety of classes that teach you best practices in Android development. These classes simplify the steps required to enhance your app with powerful platform
In a project, to exit the android program, try restartpackage, killbackgroundprocesses, and re-register the thread in the application subclass through exceptions. uncaughtexceptionhandler interface + exception mode, and so on, all have no
SharedPreferences is a lightweight storage class on the Android platform. It mainly stores some common configurations, such as window status. Generally, reload the window status onSaveInstanceState in the Activity and save it using SharedPreferences,
When downloading an object or browsing an object online, or to ensure the correctness of the object download, a cache mechanism is required. SoftReference is often used.
SoftReference is characterized by a soft reference of a Java object saved by an
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service