Home | History | Annotate | only in /development/samples/SkeletonApp
Up to higher level directory
NameDateSize
Android.mk21-Oct-2016372
AndroidManifest.xml21-Oct-20162.7K
readme.txt21-Oct-20162.1K
res/21-Oct-2016
src/21-Oct-2016
tests/21-Oct-2016

readme.txt

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