【Android入门】Android project files
file describes the fundamental characteristics of the app and defines each of its components.
of the most important elements your manifest should include is the
This declares your app's compatibility with different Android versions using the
For your first app, it should look like this:
<manifest xmlns:android="http://schemas.android.com/apk/res/android" ... > <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="17" /> ... </manifest>
You should always set the
android:targetSdkVersionas high as possible and test your app on the corresponding platform version.
Activityclass that runs when your app is launched using the app icon.
- Directory for drawable objects (such as bitmaps) that are designed for high-density (hdpi) screens. Other drawable directories contain assets designed for other screen densities.
- Directory for files that define your app's user interface.
- Directory for other various XML files that contain a collection of resources, such as string and color definitions.
you build and run the default Android app, the default
starts and loads a layout file that says "Hello World." The result is nothing exciting, but it's important that you understand how to run your app before you start developing.