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