Android-related content

Source: Internet
Author: User

One:

Foreground process:

The foreground process has the highest priority,

Visible Processes:

The Android system typically has a small number of visible processes.

Service process:

No user interface,

Background process:

There are generally more background processes.

Empty process:

Processes that do not include any active components, priority cleanup.

Two:

Four components:

Activity, service, Broadcastreceiver,contextprovider

Four states of activity: active, paused, stopped, inactive. The activity stack adheres to the last-in-first-out rule. callback function: Oncreate,onstart,onrestart,onresume,onpause,onstop, OnDestroy. Life Cycle Reference: http://blog.csdn.net/liuhe688/article/details/6733407

  

The difference between OnPause and onsaveinstancestate:

OnPause () is typically used to hold persistent data and to store data in a file system or database system on a storage device.

Onsaveinstancestate () is mainly used to save dynamic state information, the information is generally stored in the bundle bundle is able to save a variety of format data objects in the Onsaveinstancestate () stored in the bundle data, System Onrestoreinstancestate () and OnCreate () are also used by the bundle to pass the data to the function

The Onsaveinstancestate call is to save the state of the current activity.

Logcat Commissioning

Three: User interface basics

Framework for Android user interface: The Android UI framework uses the MVC model.

User interface framework with view tree

Interface controls are divided into specified controls and system controls

Testview,edittext,button,imagebutton

      

  

Android-related content

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.