diff --git a/core/java/android/app/admin/package.html b/core/java/android/app/admin/package.html new file mode 100644 index 0000000000000..1a81083919be5 --- /dev/null +++ b/core/java/android/app/admin/package.html @@ -0,0 +1,12 @@ + +
+Provides device administration features at the system level, allowing you to create +security-aware applications that are useful in enterprise settings, in which IT professionals +require rich control over employee devices.
+ +For more information, see the Device Administration developer guide.
+{@more} + + + diff --git a/core/java/android/app/backup/package.html b/core/java/android/app/backup/package.html index e14034973ddda..56658f5211289 100644 --- a/core/java/android/app/backup/package.html +++ b/core/java/android/app/backup/package.html @@ -2,9 +2,10 @@Contains the backup and restore functionality available to applications. If a user wipes the data on their device or upgrades to a new Android-powered -device, all applications that have enabled backup will restore the user's previous data.
+device, all applications that have enabled backup can restore the user's previous data when the +application is reinstalled. -For a detailed guide to using the backup APIs, see the For more information, see the Data Backup developer guide.
{@more} diff --git a/core/java/android/app/package.html b/core/java/android/app/package.html index 048ee93749e02..5137600a59547 100644 --- a/core/java/android/app/package.html +++ b/core/java/android/app/package.html @@ -1,72 +1,43 @@ - - - - -High-level classes encapsulating the overall Android application model. -The central class is {@link android.app.Activity}, with other top-level -application components being defined by {@link android.app.Service} and, -from the {@link android.content} package, {@link android.content.BroadcastReceiver} -and {@link android.content.ContentProvider}. It also includes application -tools, such as dialogs and notifications.
+Contains high-level classes encapsulating the overall Android application model.
-This package builds on top of the lower-level Android packages -{@link android.widget}, {@link android.view}, {@link android.content}, -{@link android.text}, {@link android.graphics}, {@link android.os}, and -{@link android.util}.
+An Android application is defined using one or more of Android's four core application +components. Two such application components are defined in this package: {@link +android.app.Activity} and {@link android.app.Service}. The other two components are from the {@link +android.content} package: {@link android.content.BroadcastReceiver} and {@link +android.content.ContentProvider}.
-An {@link android.app.Activity Activity} is a specific operation the -user can perform, generally corresponding -to one screen in the user interface. -It is the basic building block of an Android application. -Examples of activities are "view the -list of people," "view the details of a person," "edit information about -a person," "view an image," etc. Switching from one activity to another -generally implies adding a new entry on the navigation history; that is, -going "back" means moving to the previous activity you were doing.
+An {@link android.app.Activity} is an application component that provides a screen with which +users can interact in order to do something, such as dial the phone, take a photo, send an email, or +view a map. An activity can start other activities, including activities that live in separate +applications.
-A set of related activities can be grouped together as a "task". Until -a new task is explicitly specified, all activites you start are considered -to be part of the current task. While the only way to navigate between -individual activities is by going "back" in the history stack, the group -of activities in a task can be moved in relation to other tasks: for example -to the front or the back of the history stack. This mechanism can be used -to present to the user a list of things they have been doing, moving -between them without disrupting previous work. -
+A {@link android.app.Service} is an application component that can perform +long-running operations in the background without a user interface. For example, a service +can handle network transactions, play music, or work with a content provider without the user being +aware of the work going on.
-A complete "application" is a set of activities that allow the user to do a -cohesive group of operations -- such as working with contacts, working with a -calendar, messaging, etc. Though there can be a custom application object -associated with a set of activities, in many cases this is not needed -- -each activity provides a particular path into one of the various kinds of -functionality inside of the application, serving as its on self-contained -"mini application". -
+The {@link android.app.Fragment} class is also an important part of an application's +design—especially when designing for large screen devices, such as tablets. A fragment defines +a distinct part of an activity's behavior, including the associated UI. It has its own lifecycle +that is similar to that of the activity and can exist alongside other fragments that are embedded in +the activity. While an activity is running, you can add and remove fragments and include each +fragment in a back stack that's managed by the activity—allowing the user to navigate +backwards through the fragment states, without leaving the activity.
-This approach allows an application to be broken into pieces, which -can be reused and replaced in a variety of ways. Consider, for example, -a "camera application." There are a number of things this application -must do, each of which is provided by a separate activity: take a picture -(creating a new image), browse through the existing images, display a -specific image, etc. If the "contacts application" then wants to let the -user associate an image with a person, it can simply launch the existing -"take a picture" or "select an image" activity that is part of the camera -application and attach the picture it gets back. -
+This package also defines application utilities, such as dialogs, notifications, and the +action bar.
+ +For information about using some the classes in this package, see the following +documents: Application +Fundamentals (for activities, services, and fragments), Using the Action Bar, Creating Dialogs, and Notifying the User.
-Note that there is no hard relationship between tasks the user sees and -applications the developer writes. A task can be composed of activities from -multiple applications (such as the contact application using an activity in -the camera application to get a picture for a person), and multiple active -tasks may be running for the same application (such as editing e-mail messages -to two different people). The way tasks are organized is purely a UI policy -decided by the system; for example, typically a new task is started when the -user goes to the application launcher and selects an application. -
diff --git a/core/java/android/appwidget/package.html b/core/java/android/appwidget/package.html index 2b85bd5a41a4e..19fd2f75400df 100644 --- a/core/java/android/appwidget/package.html +++ b/core/java/android/appwidget/package.html @@ -1,32 +1,32 @@ -Android allows applications to publish views to be embedded in other applications. These -views are called widgets, and are published by "AppWidget providers." The component that can -contain widgets is called a "AppWidget host." -
-For more information, see the -AppWidgets -documentation in the Dev Guide.
- +Contains the components necessary to create "app widgets", which users can embed in other +applications (such as the home screen) to quickly access application data and services without +launching a new activity.
+For more information, see the +App Widgets +developer guide.
{@more} +The behavior of an app widget is published by an "app widget provider." An "app widget host" is +a component that can contain app widgets (such as the Home screen).
+Any application can publish app widgets (as an app widget provider). All an application needs to +do to publish an app widget is +provide a {@link android.content.BroadcastReceiver} that receives the {@link +android.appwidget.AppWidgetManager#ACTION_APPWIDGET_UPDATE} intent +and provide some metadata about the app widget. Android provides the +{@link android.appwidget.AppWidgetProvider} class, which extends {@link +android.content.BroadcastReceiver}, as a convenience class to define the app widget behavrio and aid +in handling the broadcasts.
-Any application can publish widgets. All an application needs to do to publish a widget is -to have a {@link android.content.BroadcastReceiver} that receives the {@link -android.appwidget.AppWidgetManager#ACTION_APPWIDGET_UPDATE AppWidgetManager.ACTION_APPWIDGET_UPDATE} intent, -and provide some meta-data about the widget. Android provides the -{@link android.appwidget.AppWidgetProvider} class, which extends BroadcastReceiver, as a convenience -class to aid in handling the broadcasts. - - -
Widget hosts are the containers in which widgets can be placed. Most of the look and feel +
App widget hosts are the containers in which widgets can be placed. Most of the look and feel details are left up to the widget hosts. For example, the home screen has one way of viewing widgets, but the lock screen could also contain widgets, and it would have a different way of adding, removing and otherwise managing widgets.
-For more information on implementing your own widget host, see the -{@link android.appwidget.AppWidgetHost AppWidgetHost} class.
+ +The App Widgets +developer guide shows you how to create an app widget provider. For information about implementing +an app widget host, see the {@link android.appwidget.AppWidgetHost} class.
diff --git a/core/java/android/bluetooth/package.html b/core/java/android/bluetooth/package.html index 9ac42dc58352e..37505fd404795 100644 --- a/core/java/android/bluetooth/package.html +++ b/core/java/android/bluetooth/package.html @@ -3,7 +3,7 @@Provides classes that manage Bluetooth functionality, such as scanning for devices, connecting with devices, and managing data transfer between devices.
-For a complete guide to using the Bluetooth APIs, see the For more information, see the Bluetooth developer guide.
{@more} @@ -25,6 +25,6 @@ permission.Note: -Not all Android devices are guaranteed to have Bluetooth functionality.
+Not all Android-powered devices provide Bluetooth functionality.