"Android QuickStart 1" directory Structure and ADB commands (take API19 as an example)

Source: Internet
Author: User

Directory structure

SRC: Storing Java code
gen: Store automatically generated files. R.java Store the ID of the corresponding resource under the Res folder
Project.Properties: Specifies the version of the development kit used by the current project
assets: Place the media files required for some programs.
bin: The compilation Directory of the project. Store some temporary files generated at compile time and the. apk file for the current project.


Res (Resources): Resource file.
Drawable: The picture used to store the program.
Layout: Store the android layouts file.

Fragment_main.xml (This is the new layout structure of the new API)

Activity_main.xml (main layout)
Span style= "font-family: ' Comic Sans MS ', Sans-serif; font-size:15px; " > menu: Stores the layout of the Android optionsmenu menu.
values (the data required by the application.) The ID is generated in the R file)
Strings.xml holds Android strings.
Dimens.xml the size used to store the screen fit.
Style.xml store the styles displayed under Android.

Resolution:
VALUES-SW600DP values for 7-inch plates
Values-sw720dp-land values for 10-inch plates
VALUES-V11 Specifies the style that is displayed for phones above the 3.0 version.
VALUES-V14 Specifies the style that is displayed for phones above the 4.0 version.


The portal file for the AndroidManifest.xml:android application. The components inside Android are declared. and related configuration information.
Proguard-project.txt: Encrypts the current program used.

ADB command

ADB Android Debug Bridge Android debugging Bridges

ADB devices List of all devices

ADB start-server open ADB service

ADB kill-server close ADB service

adb logcat View Log

ADB shell mounts to Linux space (Linux commands are available)

ADB Install < applications (plus extensions) > Install applications

Adb–s < emulator name > install < application (plus extension) > Installing apps to the specified emulator

ADB Uninstall < package name >

ADB pull <remote> <local>

ADB push <local> <remote>

EMULATOR–AVD < simulator name >

CTRL + F11 Toggles the screen

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.