Android Basics: Activity

Source: Internet
Author: User
Basic concept of activity

Activity represents the active window, and the content is displayed through the context loading page, and each activity must be registered in the manifest.xml.

An application consists of multiple interfaces, fallback stack, active window, new window join, old window pressed into the stack

Classes that inherit activity include:

The OnCreate () method internally has setcontextview (int layoutresid), which loads the resource file;

OnPause () The user leaves the activity and the system is automatically called, but the activity is not destroyed, and the data needs to be persisted in this life cycle, stored locally

Activity is the active window,

The system runs based on intent to find the activity that needs to be run

android.intent.action.main--main Window

Intended to handle user requests: Make a call, send a text message, or transfer values between forms by intent

Another activity initiates the current activity

Activity Value Delivery

Activity Callback Value

Activity Live Save Status

Activity life cycle

Create

Stop

Destory

Android Basics: Activity

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.