1Android Skeleton App 2~~~~~~~~~~~~~~~~~~~~ 3 4 5This directory contains the full implementation of a basic application for 6the Android platform, demonstrating the basic facilities that applications 7will use. You can run the application either directly from the "test" 8list in the app launcher (it is named Skeleton App) or by selecting it from 9the top list in the Sample Code app. 10 11The files contained here: 12 13 14AndroidManifest.xml 15 16This XML file describes to the Android platform what your application can do. 17It is a required file, and is the mechanism you use to show your application 18to the user (in the app launcher's list), handle data types, etc. 19 20 21src/* 22 23Under this directory is the Java source for for your application. 24 25 26src/com/android/skeletonapp/SkeletonActivity.java 27 28This is the implementation of the "activity" feature described in 29AndroidManifest.xml. The path each class implementation is 30{src/PACKAGE/CLASS.java}, where PACKAGE comes from the name in the <package> 31tag and CLASS comes from the class in the <activity> tag. 32 33 34res/* 35 36Under this directory are the resources for your application. 37 38 39res/layout/skeleton_activity.xml 40 41The res/layout/ directory contains XML files describing user interface 42view hierarchies. The skeleton_activity.xml file here is used by 43SkeletonActivity.java to construct its UI. The base name of each file 44(all text before a '.' character) is taken as the resource name; 45it must be lower-case. 46 47 48res/drawable/violet.png 49 50The res/drawable/ directory contains images and other things that can be 51drawn to the screen. These can be bitmaps (in .png or .jpeg format) or 52special XML files describing more complex drawings. The violet.png file 53here is used as the image to display in one of the views in 54skeleton_activity.xml. Like layout files, the base name is used for the 55resulting resource name. 56 57 58res/values/colors.xml 59res/values/strings.xml 60res/values/styles.xml 61 62These XML files describe additional resources included in the application. 63They all use the same syntax; all of these resources could be defined in one 64file, but we generally split them apart as shown here to keep things organized. 65 66