Android: What is Activity and common ADB commands and Android project structure? adbandroid

Source: Internet
Author: User

Android: What is Activity and common ADB commands and Android project structure? adbandroid

To sum up some of the previous Android content

I: AndroidCommon ADBCommand (adb android debugging Bridge)

1.Adb devicesView the simulator device and connect again.

2.Adb kill-serverTurn off all simulator devices.

3.Adb install-r url (installation path), installation,-r indicates replacement.

4.Adb uninstall url(Uninstall path), uninstall.

5.Adb push<Local File> <remote path> upload a file.

6.Adb pull<Remote path> <local path> download file.

II: AndroidProject Structure

1. src directory: Java source file of the application

2. gen Directory: files generated by the ADT plug-in.

3. assets Directory: generally stores large source files.

4. bin directory: compiled files.

5. libs Directory: alibabacloud.com.

6. res Directory: resource file.

7. res Directory: resource file (especially when an image file is placed, the name can only be a number or lowercase letter; otherwise, the program may fail)

3. What is Activity?

Android consists of four components: Activity user interaction component, service background service component, BroadcastReceiver broadcast notification component, and ContentProvider data provider component. Activity is an independent Android Application component that can interact with users. As an application interface framework, activity is responsible for dynamically loading various user interface views and delivering messages.

Related Article

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.