First take a look at the entire process of using the Java language for Android applications from the source code to the installation package, which includes compilations, links, and signatures, as follows:
(1) using the AAPT tool to generate R.java files
You can create an automatically android project first by building an eclipse development environment, and
Android Telephony-real-time mobile phone signal change source code analysis process record, androidtelephony
Source code: 4.4
Skip UI implementations such as InCallActivity. First look at the service and the underlying layer.
1. the following file list is found under frameworks/opt:
./telephony/src/java/com/android/in
Android custom ViewPager (1) -- custom Scroller to simulate the animation process
I believe that the ViewPager component provided by the Android SDK is quite familiar to everyone, but ViewPager exists in support. in the v4 package, ViewPager does not exist in earlier android versions. How can we use sliding effects si
here (); // load some resource files. xml files such as array, drawable, and color are preloadResources ();.............. if (argv [1]. equals (true) {// In the SystemServer class, fork system service process startSystemServer ();} else If (! Argv [1]. equals (false) {throw new RuntimeException (argv [0] + USAGE_STRING);} private static boolean startSystemServer () throws MethodAndArgsCaller, RuntimeException {String args []; string ashmem_size = Sys
quickly. It is estimated that preloadClasses () has been optimized here (); // load some resource files. xml files such as array, drawable, and color are preloadResources ();.............. if (argv [1]. equals ("true") {// In the SystemServer class, fork system service process startSystemServer ();} el Se if (! Argv [1]. equals ("false") {throw new RuntimeException (argv [0] + USAGE_STRING) ;}} private static boolean startSystemServer () throws Metho
(intent.getAction().equals("Action_Test")){ SendData data = (SendData)intent.getParcelableExtra("data"); System.out.println("-----------"+data.getContent()+"------------"); } } }
Because data is transmitted through Intent, the requirements for complex objects are the same as those for the first method, requiring the same package name of the beanContentProvider
ContentProvider is usually used to operate datasets. Android
In this topic you will learn some information about android process management. First let's take a look at the launched processes during Android booting.
User PID ppid vsize RSS wchan PC name
Root 1 0 264 176 c00acc6c unzip c36c S/init
Root 28 1 724 308 c0051354 afe0c4cc S/system/bin/sh
System 30 1 796 248 c026516c afe0b74c S/system/bin/servicemanager
R
[First written by Steve Guo, please keep the mark if forwarding.]
In this topic you will learn some information about android process management. First let's take a look at the launched processes during Android booting.
User PID ppid vsize RSS wchan PC name
Root 1 0 264 176 c00acc6c unzip c36c S/init
Root 28 1 724 308 c0051354 afe0c4cc S/system/bin/sh
System 30 1
Android: process can be used for a single component (activity, broadcast, etc ).
ApplicationProgramAll components are running in this process. Each component can overwrite this setting by setting its own process attribute.By default, Android creates a separate
/base/policy/src/COM/Android/Internal/policy/impl/globalaction. java has a changeairplanemodesystemsetting (Boolean on) method, which writes settings based on whether the on value is true or false. system. putint (mcontext. getcontentresolver (), settings. system. airplane_mode_on, on? 1-0); then send the broadcast:
Intent intent = new Intent(Intent.ACTION_AIRPLANE_MODE_CHANGED); intent.addFlags(
initialization process and starts to run and initialize the Dalvik virtual machine.
6. The system serverSystem ServiceThe system server is the first Java component to run in the system. It will start all the android services such as Telephony Manager and Bluetooth.Start up of each Service is currently written directly into the run method of the system server. The system server source can be found in th
Definition Language) is an Interface Definition Language. The compiler uses *. the description of the aidl file generates Java code that complies with the communication protocol. You do not need to write this complicated code by yourself. You only need to call it when necessary, in this way, we can complete inter-process communication.
AIDL is a lightweight Implementation of IPC and uses the syntax that is familiar to Java developers.
can only reboot, can not be shutdown operation, you will be able to track the process in the course of the discovery, It is true that there is an associated interface with a shutdown. So what's the use of shutting down the machine?Frameworks/base/services/java/com/android/serverbatteryservice.java
Private final void Shutdownifnopower () {
//Shut down gr
). For example, if you want to replace the contact details browsing interface (you can call the interface directly or by using a shortcut), you need to set the task affinity (taskAffinity) to "com. android. contacts ".
Start mode and start mark
The most important way to control the communication between activities and tasks is to set the Startup Mode attributes and mark the intention accordingly. These two
Previously, I briefly described the android startup process at http://blog.csdn.net/codectq/article/details/7383231,but it is not perfect.
Now I have encountered some practical problems in the project. In turn, I will read the code and review the android startup process after the kernel is started.
The systemserver. cp
First, the preface
Anti-compilation means that apk files or Dex files do not function correctly through the Decompile tool, and may cause tool anomalies or crashes, such as Apktool, Baksmali, Dex2jar, Jeb, and so on, as shown in the following figure Dex2jar is not working properly.
Second, DEX file format analysis
At present, most of the anti-compiler tools for Android software are open source, such as Apktool, Dex2jar, Baksamli, you can easily d
SOURCE Version: 4.4Skipping UI implementations such as Incallactivity. First look at the service and the bottom.1, a list of the following files will be found below frameworks/opt:./telephony/src/java/com/android/Internal/telephony/cdma/Cdmaservicestatetracker.java. /telephony/src/java/com/android/Internal/telephony/cd
Chapter:--monkeyrunner Principle of automation basic articleNetEase Cloud Classroom:http://study.163.com/course/courseLearn.htm?courseId=712011#/learn/video?lessonId=877115courseId=712011Main content and notes:I. Theoretical knowledge and script presentationThe best way is the last officer Web document to see the introduction of Monkeyrunner, official online not to go to find a local Android 4.2 view, the b
. Where is the service object?
2. as we know, create a XX in eclipse. after the aidl file is created, the IDE automatically generates a file named XX using related tools. java interface, which has an internal class named stub. If we create a class and inherit the internal class, we can implement inter-process communication. This is aidl knowledge, this is not detailed here. Let's look down:
According to the aidl implementation
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.