Andriod Learning-01

Source: Internet
Author: User

Android Studio project directory structure

App/build/app Module build compiled output directory

gradle compilation file for App/build.gradle app module

APP/APP.IML app module configuration file

App/proguard-rules.pro app module proguard file

gradle compilation file for Build.gradle project

Settings.gradle Define which modules the project contains

Gradlew compile scripts that can be packaged at the command line

Local.properties configuration sdk/ndk

configuration file for MYAPPLICATION.IML project

External Libraries Project dependent Lib, compile-time automatic download

Module Structure Type

App/manifests androidmanifest.xml configuration file directory

App/java Source Directory

App/res resource file directory

Gradle Scripts Gradle Compilation-related scripts

 

Activity Life cycle

1. start Activity: The system calls the onCreate method First, then calls the onStart method, and finally calls the onresume, theActivity enters the running state.

2. current activity is overwritten by other activity or Locked screen: The system calls the onPause method, pausing the current The execution of the Activity.

3. The current Activity is returned to the foreground or unlock screen by the overwritten state: The system calls the onresume method and enters the running state again.

4. The current activity goes to the new activity interface or press the home key to return to the main screen, itself back to the background: the system will first call onPause method, and then calls the onStop method to enter a stagnant state.

5. the user backs back to this Activity: The system calls the Onrestart method First and then calls the OnStart method, and finally calls the onresume method, again into the running state.

6. current activity 2 Steps and 4 step, system memory is low, kill current activity activity : Call again oncreate method, onstart method, onresume method, enter the running state.

7. The user exits the current Activity: The system calls the onPause method First, then calls the onStop method, and finally calls the ondestory method to end the current Activity.

Control

all controls in Android are inherited from Android.view.View, where android.view.ViewGroup is An important subclass of View, most of the layouts are inherited from viewgroup.

Andriod Learning-01

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.