"Android" Learning Diary first Knowledge activity

Source: Internet
Author: User

I. Introduction to the activity:

Activity is the most basic and most commonly used component of Android components, in an Android application, each activity is usually a page, and each activity is implemented as a separate class that can be understood as a JSP page in the Java EE. And each activity component inherits from the activity's base class, which will display a user interface consisting of several views controls and respond to the event

You can navigate from one screen to another by calling the StartActivity () method, and the conditions for opening the activity are encapsulated in intent.

When a new screen is opened, the previous screen is paused and saved in the history stack, and the user can return to the previous screen in the history stack, which can also be removed from the history stack when the screen is no longer in use, and by default Android will retain the run screen from the home screen to each app.

"Android" Learning Diary first Knowledge 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.