The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 1 | <html> |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 2 | |
| 3 | <body> |
| 4 | |
Scott Main | f4f05b8 | 2011-01-07 14:38:23 -0800 | [diff] [blame] | 5 | <p>Contains high-level classes encapsulating the overall Android application model.</p> |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 6 | |
Scott Main | f4f05b8 | 2011-01-07 14:38:23 -0800 | [diff] [blame] | 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> |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 12 | |
Scott Main | f4f05b8 | 2011-01-07 14:38:23 -0800 | [diff] [blame] | 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> |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 17 | |
Scott Main | f4f05b8 | 2011-01-07 14:38:23 -0800 | [diff] [blame] | 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> |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 22 | |
Scott Main | f4f05b8 | 2011-01-07 14:38:23 -0800 | [diff] [blame] | 23 | <p>The {@link android.app.Fragment} class is also an important part of an application's |
| 24 | design—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—allowing the user to navigate |
| 29 | backwards through the fragment states, without leaving the activity.</p> |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 30 | |
Scott Main | f4f05b8 | 2011-01-07 14:38:23 -0800 | [diff] [blame] | 31 | <p>This package also defines application utilities, such as dialogs, notifications, and the |
| 32 | action bar.</p> |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 33 | |
Scott Main | f4f05b8 | 2011-01-07 14:38:23 -0800 | [diff] [blame] | 34 | <p>For information about using some the classes in this package, see the following |
Scott Main | 13033ea | 2011-02-15 13:18:30 -0800 | [diff] [blame] | 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 |
Scott Main | f4f05b8 | 2011-01-07 14:38:23 -0800 | [diff] [blame] | 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 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 42 | |
| 43 | </body> |
| 44 | </html> |