Init is a process. It is the first process in the user space in linux system. The PID of the process is 1, and the parent process is linux.Process no. 0 of the system kernel. Therefore, it has been assigned many extremely important responsibilities.
1. the lifecycle of the Activity is different from that of the Dialog AlertDialog. Builder builder = new AlertDialog. Builder (context );
2. The context is the context of the Activity. 3. The Dialog must be dismiss () before the Activity is
This example shows how to slide between the left and right of an image in Android.The main effects are as follows: Program structure: Code in the MainActivity file:
Package com. android. flip;Import android. app. Activity;Import android. OS.
This software sets the user's first access to the page load wait function, which is a waiting page lasting 1 or 2 seconds for the user, while the user is waiting, the program performs some necessary checks and data preparation work. The loading page
The boot screen of the Android system is divided into the following three phases:
1. Boot Image: the Android kernel is based on the standard kernel and familiar with linux, especially those who have transplanted the Linux system on the Development
Usually we need to display more information on the user's screen, but the user's screen size is limited. How can we use limited space to display more information? Android provides us with the SlidingDrawer class to help us easily achieve the desired
The program monitors the installation and uninstallation of apk. After receiving the system broadcast, retrieve the package name and other information of the new installation program.
String packageName = intent. getDataString ();
PackageInfo info
During the past two days, I checked the Android compilation and rootfs preparation procedures, and accidentally found it in mydroid/build/tools/-adbs!
Adbs is a command line tool written in python. Using the three tools adb, addr2line, and objdump,
The startActivity () method can call another Activity, but this method does not return a result for the current Activity. For example, if you have an Activity that prompts the user to enter the user name and password, and the information entered by
From the android development perspective, I will briefly describe how to obtain the mobile phone device information and mobile phone number. Prerequisites: an android phone and SIM card must be inserted into the mobile phone, eclipse ADT, and
Through the launcher source code, you can see that the creation shortcut is through--Generate shortcutsWe can directly send a broadcast when the program starts to create a desktop shortcut.Private void createShortCut (){Intent intent = new Intent
Get Android Source CodeThis document describes how to set up your local work environment, how to use Repo to get the Android files, and how to build the files on your machine.
Related reading:
For an overview of the entire code-review and
1. SQLiteOpenHelper
SQliteOpenHelper is an abstract class used to manage database creation and version management. To use it, you must implement its nCreate (SQLiteDatabase), onUpgrade (SQLiteDatabase, int, int) method.
OnCreate: the database is
After such a long period of development and management, the command is always self-viewed, but the sharing process on the command is often ignored. So now I just needIts command-related operations can be used for simple literacy, and the system also
The active folder is introduced by SDK1.5 and allows developers to publish ContentProvider, such as contacts and media data, on the desktop of a device. The active folder in Android serves the ContentProvider as the RSS reader for publishing
In some cases, you need to map the same type to different class implementations, or use the plot example.IShape, Rectangle, MyRectangle, and MySquare have the following inheritance relationships:
We may need to map IShape to both MyRectangle and
After learning about the Service, I will not talk about some of the common online services. I would like to say something that is easy to misunderstand.
1. are services created in new processes?Actually not, I wrote in the Dev
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