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.