Today I encountered this problem again. Based on previous practices and current situations, I have found a relatively good practice. As sysytem is everywhere on the Internet. exit (), android. OS. process. killprocess (Android. OS. process. mypid (),
Set Android SDK home
After installing the plug-in, you also need to configure the following before using eclipse to create an android project. You need to set the main directory of the android SDK. Click "Windows> Preferences", as shown in Figure 2-
1: Android: id -- specify Id2: Android: text for the control -- specify the text used in the control 3: Android: gravity -- specify the basic position of the control, such as center, right, etc,
It mainly refers to the text location.. 4: Android:
When we use asynctask in Android, it is generally used as the internal class of the activity. In this way, you can simply update the progress onprogressupdate and onpostexecute when the execution is complete, and directly operate the interface
No matter what the application is, the configuration interface is indispensable. You can modify at least some parameters.Entry 1,
The configuration interface of Android is preferenceactivity,
Http://www.cnblogs.com/wservices/archive/2010/07/08/1773
Method 1: In the ondescloud method, exit the system. Can this be used?
@ Override
Protected void ondestroy (){
Super. ondestroy ();
System. Exit (0 );
// Or the following method
// Android. OS. process. killprocess (Android. OS. process. mypid ());
Http://www.cnblogs.com/hnrainll/archive/2012/06/05/2536629.html
Simple and detailed writing
Http://www.cnblogs.com/zhxiaomiao/archive/2010/07/29/1787604.html
16-color table
Http://jojol-zhou.iteye.com/blog/828830
Height and width of the
In the previous section, we used DOM to parse XML documents. This method conforms to our daily thinking and is easy to use. However, it directly transfers documents to the memory, which is relatively memory-consuming. Here we can use another method
+ ------------------------------------------------- +
+ This series is serialized and occasionally updated. +
+ ------------------------------------------------- +
1. Download and compile the android4.0 System
For details about downloading and
1. Do not allocate memory at will
When developing Android applications, we should minimize the use of new keywords. This is because GC releases memory once on a mobile phone. GC sometimes takes several hundred milliseconds to release memory. As you
I installed Android studio today and tried it. After installation, it cannot be opened. My operating system is 32-bit, and my android studio colleagues use a 64-bit system.
Go to the command line and execute studio. bat under the Android-studio \
Changes to the platform version will introduce new features and optimize existing APIs.
For new features of Android 4.1 (jellybean), please refer to the official documentation Android-4.1. Because this article does not focus on introducing the new
There are three important concepts:
1. Logoff
The default working thread is a message loop that is not associated with it. You can use the logoff class to run the message loop. After entering the message loop, the message loop will process the
Surfaceflinger object creation process
1 surfacesession Creation
When a client requests to create a surface, it first establishes a session with surfaceflinger, and then creates a connection on the session to return the bclient object through the
Android Application
In the conceptual space provided by Android to developers, application is just a loose characterization concept, and there is not much substantive representation. In actual android space, there is no practical application concept.
In the past two days, the company organized a tour. The upgraded sdk2.3 was just installed, but it hasn't been carefully viewed yet. Let's take a look at it today.
2.3sdk has two new features:
1. when I first installed 2.3, I checked the SDK
Attribute system is an important feature of Android. It runs as a service and manages system configurations and statuses. All these configurations and statuses are attributes. Each attribute is a key-value pair, and its type is a string.
In terms
/** * Pass the touch screen motion event down to the target view, or this * view if it is the target. * * @param event The motion event to be dispatched. * @return True if the event was handled by the view, false otherwise. */
Understanding
Android processes key events and keycode definitions in frameworks/base/CORE/Java/Android/View/keyevent. in Java, and frameworks/policies/base/phone/COM/Android/Internal/policy/impl/phonewindowmanager. in Java, Android defines the
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