Exit but do not close:This is an Android optimized for Linux. When the Android application exits, it does not clean up the memory it consumes, and the Linux kernel process continues to exist, so-called "quit without shutting down". This allows the user to get a response at the first time when invoking the program.App switching to the background is paused, completely CPU-and power-intensive, leaving only the
1: Install day shield smart phone data recovery software in the computer (is not in the computer on the phone).
2: Then we get your phone root (recommended reading: The Android Phone root access method).
3: Then open the software will let us select the system, here we choose the "Android mobile data to restore th
Exit but do not close:This is an Android optimized for Linux. When the Android application exits, it does not clean up the memory it consumes, and the Linux kernel process continues to exist, so-called "quit without shutting down". This allows the user to get a response at the first time when invoking the program.App switching to the background is paused, completely CPU-and power-intensive, leaving only the
is switched on, activity A is destroyed and activity A is automatically created after the screen switch, so onsaveinstancestate is bound to be executed. In summary, Onsaveinstancestate's invocation follows an important principle that when the system destroys your activity "without your permission", then Onsaveinstancestate is called by the system, which is the responsibility of the
. We do not need to reinitialize the component in a series of callback methods that revert to the resumed state.
Resume ActivityWhen the user resumes activity from the paused state, the system calls the Onresume () method.Note that every time the system calls this method, the activity is in the foreground, including the first time it is created. Therefore, you should implement Onresume () to initialize
voidonrestoreinstancestate (parcelable state) { - if(stateinstanceofBundle) {//determines whether the currently received state is a subclass of the bundle theBundle bundle= (bundle) state;//Type Casting -Malpha=bundle.getfloat (Status_alpha);//Remove user-defined state - Super. Onrestoreinstancestate (Bundle.getparcelabel (instance_status));//Restore parent class State - return;//here to return, otherwise if content is executed two times + } - Super. Onrestoreinstanc
Android system architecture-microservice architecture, android system architectureDirectory
I. microservice Architecture Model
1.1 mode description
1.2 mode Topology
1.3 avoid dependency and Scheduling
1.4 precautions
1.5 Mode Analysis
Ii. microservice architecture in
flash or SD card boot program, the boot program is generally ubootUboot will be finished initializing some devices, the very important part here is NAND flash, in order to load the Linux kernel into the memory and execute.The kernel that is loaded may be the kernel in the boot partition, depending on the situation. It is also possible that the kernel in the recovery partition.After the kernel runs, it will first mount the RAMDisk to the "/" root fold
How to completely back up the system partitions and data partitions on the android system, androiddata
Android system backup may be used in many cases, the following python script, can be used to back up the entire data Partition: All the datapartition files and directories
Java code and interpreted and executed in Dalvik VM. In the Android operating system, each Instance of each Dalvik VM corresponds to a process in the Linux kernel. You can use the adb shell tool to view the current process in the system. As shown in, the list of processes in the kernel after Android2.3.3 is started
Android
Memory reclaim policy in Android operating system, android reclaim
Memory collection in the Android operating system can be divided into two levels: 1. Default memory collection, that is, the default collection at the Application Framework layer. 2. kernel-level memory
service named "Running", "Restarting ")
Init. RCExample:
-----------------
# Not complete -- just providing someExamples of Usage
#
On Boot
Export path/Sbin:/system/bin
Export LD_LIBRARY_PATH/System/lib
Mkdir/dev
Mkdir/proc
Mkdir/sys
Mount tmpfs/dev
Mkdir/dev/PTS
Mkdir/dev/socket
Mount devpts/Dev/PTS
Mount proc/proc
Mount sysfs/sys
Write/Proc/CPU/alignment 4
IFUP Lo
Hostname localhost
Domainname lo
written in Java code and interpreted and executed in Dalvik VM. In the Android operating system, each instance of each Dalvik VM corresponds to a process in the Linux kernel. You can use the ADB shell tool to view the current process in the system. As shown in, the list of processes in the kernel after android2.3.3 is started
platforms)| -- Recovery (related to the recovery function of the target)'-- System (some underlying libraries of Android)
The bionic directory is displayed as follows:Bionic/| -- Android. mk| -- Libc| -- Libdl| -- Libm| -- Libstdc ++| -- Libthread_db'-- Linker
Two levels of
How to completely back up system partitions and data partitions on the android system
Android system backup may be used in many cases, the following python script, can be used to back up the entire data Partition: All the datapartition files and directories into data.zip, an
. But look at the code, anyway, the end will call the Lowlevelshutdown function, that is, shutdown. Logically, this may be a problem, but in practice, if the reboot operation succeeds, the entire system reboots, and the code behind it is certainly impossible to execute.Turn your eyes back to Powermanagerservice4.frameworks/base/services/java/com/android/server/powermanagerservice.java
/**
* Low-l
instance to provide the app runtime environment in this way. In this way, the resources of each APP are completely blocked and do not interfere with each other. Although the difficulties of inter-process communication are introduced at the same time, it also brings stronger security.Android memory reclaim Principle
The following describes the Resource Management Mechanism of the Android operating system at
Development)| -- External (some libraries used by the target machine)| -- Frameworks (framework layer of the Application)| -- Hardware (hardware-related Library)| -- Kernel (source code of linux2.6)| -- Packages (various Android applications)| -- Prebuilt (preset scripts compiled by android on various platforms)| -- Recovery (related to the
, before you brush the machine, you should know the risk, if you turn your phone into brick after you want to blame Winshare this tutorial, you'd better stop here, do not continue to try.This tutorial only provides a way to brush the Windows Phone system into an Android system, to learn how to restore the Android
applications for dim sum mobile phones, such as the magic graphic genie, cartoon reader, e-book, business card scanning, data recovery and backup, new friends, and snack news, it can be said that many of them are very suitable for domestic users and are easy to use.
Fully compatible with Android
Speaking of localization, we have to mention the positioning of dim sum OS. Like other Chinese manufacturers, sn
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.