Home | History | Annotate | Download | only in app
      1 <html>
      2 
      3 <body>
      4 
      5 <p>Contains high-level classes encapsulating the overall Android application model.</p>
      6 
      7 <p>An Android application is defined using one or more of Android's four core application
      8 components. Two such application components are defined in this package: {@link
      9 android.app.Activity} and {@link android.app.Service}. The other two components are from the {@link
     10 android.content} package: {@link android.content.BroadcastReceiver} and {@link
     11 android.content.ContentProvider}.</p>
     12 
     13 <p>An {@link android.app.Activity} is an application component that provides a screen with which
     14 users can interact in order to do something, such as dial the phone, take a photo, send an email, or
     15 view a map. An activity can start other activities, including activities that live in separate
     16 applications.</p>
     17 
     18 <p>A {@link android.app.Service} is an application component that can perform
     19 long-running operations in the background without a user interface. For example, a service
     20 can handle network transactions, play music, or work with a content provider without the user being
     21 aware of the work going on.</p>
     22 
     23 <p>The {@link android.app.Fragment} class is also an important part of an application's
     24 design&mdash;especially when designing for large screen devices, such as tablets. A fragment defines
     25 a distinct part of an activity's behavior, including the associated UI. It has its own lifecycle
     26 that is similar to that of the activity and can exist alongside other fragments that are embedded in
     27 the activity. While an activity is running, you can add and remove fragments and include each
     28 fragment in a back stack that's managed by the activity&mdash;allowing the user to navigate
     29 backwards through the fragment states, without leaving the activity.</p>
     30 
     31 <p>This package also defines application utilities, such as dialogs, notifications, and the
     32 action bar.</p>
     33 
     34 <p>For information about using some the classes in this package, see the following
     35 documents: <a href="{@docRoot}guide/topics/fundamentals/activities.html">Activities</a>, <a
     36 href="{@docRoot}guide/topics/fundamentals/services.html">Services</a>, <a
     37 href="{@docRoot}guide/topics/fundamentals/fragments.html">Fragments</a>, <a
     38 href="{@docRoot}guide/topics/ui/actionbar.html">Using the Action Bar</a>, <a
     39 href="{@docRoot}guide/topics/ui/dialogs.html">Creating Dialogs</a>, and <a
     40 href="{@docRoot}guide/topics/ui/notifiers/index.html">Notifying the User</a>.</p>
     41 
     42 
     43 </body>
     44 </html>
     45