From 11d2eef36fc495bc842e3601cb90ba66f3243527 Mon Sep 17 00:00:00 2001
From: quddusc
-
- This sample provides a basic example of using an InstrumentationTest to probe the
- internal state of an Activity.
-
- This sample demonstrates how to use an
+{@link android.test.InstrumentationTestCase} to test the internal state of an
+{@link android.app.Activity}. To learn more about using Android's custom testing framework, see
+Testing Your
+Android Activity.
-
- \"Immersive Mode\" is a new UI mode which improves \"hide full screen\" and
- \"hide nav bar\" modes, by letting users swipe the bars in and out. This sample
- lets the user experiment with immersive mode by enabling it and seeing how it interacts
- with some of the other UI flags related to full-screen apps.
- \n\nThis sample also lets the user choose between normal immersive mode and "sticky"
- immersive mode, which removes the status bar and nav bar
- a few seconds after the user has swiped them back in.
-
- Android 4.4 introduces a way for you to provide a more immersive screen
+experience in your app, by letting users show or hide the status bar and
+navigation bar with a swipe. This sample demonstrates how this features interacts with some of the other
+UI flags related to full-screen apps. The sample also shows how to implement a
+"sticky" mode, which re-hides the bars a few seconds after the user swipes
+them back in.
-
- This sample shows you how to use ActionBarCompat to create a basic Activity which
- displays action items. It covers inflating items from a menu resource, as well as adding
- an item in code. Items that are not shown as action items on the Action Bar are
- displayed in the action bar overflow.
-
- This sample demonstrates how to create a basic action bar that displays
+action items. The sample shows how to inflate items from a menu resource, and
+how to add items programatically. To reduce clutter, rarely used actions are
+displayed in an action bar overflow. The activity in this sample extends from
+{@link android.support.v7.app.ActionBarActivity}, which provides the
+functionality necessary to display a compatible action bar on devices
+running Android 2.1 and higher.
-
- This sample demonstrates how to create an accessible application, using a mix of different widgets demonstrating different ways of adding accessibility markup to a UI.
-
- This sample demonstrates how to create applications that are accessible for
+users with visual or physical disabilities. To learn how to make the most of the accessibility features built into
+the Android framework, see
+Implementing Accessibility.
-
- Welcome to the Basic Android Key Store sample!\n\n
- This sample demonstrates how to use the Android Key Store to safely create and store
- encryption keys that only your application can access. You can also sign data
- using those keys.\n\n
- To create a new KeyPair, click \"Create\".\n\n
- To sign some data using a KeyPair, click \"Sign\".\n\n
- To verify the data using the signature provided, click \"Verify\".\n\n
- This sample demonstrates how to use a {java.security.KeyStore} to
+safely create and store encryption keys that only your application can access.
+You can also sign data using those keys. To see this in action, run the sample application and click:
-
- This sample demonstrates how to use the Contactables table to search for contacts.
- \n\nQuery strings sent to the Contactables table will match both contact names and phone numbers,
- reducing the number of queries your application needs to use when searching the contacts database!
-
- This sample demonstrates how to use the
+{@link android.provider.ContactsContract.Data} table to search for contacts. The sample sends consolidated query strings to the
+{@link android.provider.ContactsContract.Data} table to match both contact
+names and phone numbers. This approach helps to reduce the number of
+queries needed when searching the contacts database.
-
- Welcome to Basic Gesture Detect!
- In order to try this sample out, try dragging or tapping this text to see what happens!
-
- This sample demonstrates how to use the {@link android.view.GestureDetector}
+API to detect simple dragging and tapping gestures. To learn more about detecting basic touch gestures such as scrolling,
+flinging, and double-tapping, see
+Detecting Common Gestures.
-
- \"Immersive Mode\" is a new UI mode which improves \"hide full screen\" and
- \"hide nav bar\" modes, by letting users swipe the bars in and out. This sample
- demonstrates how to enable and disable immersive mode programmatically.
-
- Android 4.4 introduces a way for you to provide a more immersive screen
+experience in your app, by letting users show or hide the status bar and
+navigation bar with a swipe. This sample demonstrates how to enable and disable this feature
+programmatically.
-
- This activity uses a TextureView to render the frames of a video decoded using the
- MediaCodec API.
-
- This sample demonstrates how to decode a video using
+the {@link android.media.MediaCodec} API and render in an activity.
-
- This sample demonstrates the use of the MediaRouter API to display
- content on a secondary display.\n\nUse the "Media Route Action Item" in the ActionBar
- to select an output device. If your device supports Miracast wireless displays,
- you may need to enable "Wireless Display" functionality in the system settings.
- Secondary screen simulation can also be enabled from the "Developer Options".\n\n
-Once connected, use the "Change Color" button to change the background color of the secondary screen.
-
- This sample demonstrates how to use the {@link android.media.MediaRouter}
+API to display content on a secondary display. To see this in action, run the sample and use the
+Media Route Action Item in the action bar to select an
+output device. If your device supports Miracast wireless displays, you may
+need to enable Wireless Display functionality in the
+system settings. You can also enable secondary screen simulation from the
+Developer options in the system Settings. Once
+connected, use the Change Color button to change the
+background color of the secondary screen.
-
-This samples demonstrates the use of MotionEvent properties to keep track of individual touches
-across multiple touch events.
-\n\nTouch the screen with multiple fingers to show that the pointer id
-(also represented by a colour) does not change as new touch events are received.
-
- This samples demonstrates how to use the {@link android.view.MotionEvent}
+API to keep track of individual touches across multiple touch events. To see this in action, run the sample and touch the screen with multiple
+fingers to show that the pointer id (also represented by a colour) does not
+change as new touch events are received.
-
- This sample demonstrates how to use the ConnectivityManager to determine if you have
- a network connection, and if so, what type of connection it is.
- \n\nA "NetworkInfo" object is retrieved from the ConnectivityManager, which contains information
- on the active connection, and then the connection type is printed to an on-screen console.
-
- This sample demonstrates how to use the
+{@link android.net.ConnectivityManager} to determine if the device has an
+active network connection, and if so, retrieve the connection type.
-
- This sample demonstrates how to display events in the system\'s notification bar. The
- NotificationCompat API is used for compatibility with older devices, running Android
- 2.2 (Froyo) or newer.
-
- This sample demonstrates how to display events in the system's notification
+bar. The {@link android.support.v4.app.NotificationCompat} API is used for
+compatibility with devices running Android 2.2 or higher.
-
- This sample demonstrates using SyncAdapter to fetch background data for an app that
- doesn\'t require a user-visible account type or 2-way synchronization.
-
- \n\nThis sample periodically downloads the feed from the Android Developer Blog and
- caches the data in a content provider. At runtime, the cached feed data is displayed
- inside a ListView.
-
- This sample demonstrates how to implement a sync adapter to fetch background
+data for an app that doesn't require a user-visible account type or two-way
+synchronization. The sample periodically downloads the feed from the Android Developers Blog and caches the data in a content provider. At runtime, the cached feed data is
+displayed inside a {@link android.widget.ListView}. To learn more about creating and using sync adapters, see
+Transferring Data Using Sync Adapters.
-
- This sample demonstrates how to use the Bluetooth LE Generic Attribute Profile (GATT)
- to transmit arbitrary data between devices.
-
- This sample demonstrates how to use the Bluetooth Low Energy Generic
+Attribute Profile (GATT) to transmit arbitrary data between devices. For more
+information about using Android's suppport for Bluetooth Low Energy, see
+Bluetooth Low
+Energy.
-
- This sample demonstrates the use of borderless buttons, bottom button bars
- (OK and Cancel) and dividers to establish visual structure.
-
- This sample demonstrates how to apply borderless buttons, bottom button bars
+(OK and Cancel), and dividers to establish visual structure.
-
- This sample demonstrates how to create custom checkable layouts, for use with ListView\'s choiceMode
- attribute.
-
- This sample demonstrates how to implement a custom single-choice or
+multi-choice {@link android.widget.ListView} user interface.
-
- This sample demonstrates notifications with custom content views.
-
- This sample demonstrates how to implement expanded notifications that
+display custom views.
-
- This sample demonstrates two alternative presentations of the
- action bar that are well-suited for simple data entry scenarios.
-
- In this presentation, a done bar replaces the action
- bar entirely, providing two direct actions to persist or dismiss changes. This is
- suitable for cases where no additional view details or actions are needed in the
- action bar.
-
- This sample demonstrates a user interface design pattern for simple data
+entry from an {@link android.app.ActionBar}. The sample implements a custom
+Done/Cancel bar to provide users with an easy way to directly
+save or cancel their changes. This design pattern is suitable for scenarios
+where no additional view details or actions are needed in the action bar.
-
- This sample demonstrates how to implement horizontal paging between fragments in
- applications that use ActionBar, using a ViewPager widget.
-
- This sample demonstrates how to implement horizontal paging between
+fragments in an application that has an {@link android.app.ActionBar}, using a
+{@link android.support.v4.view.ViewPager} widget.
-
- One of the features introduced in KitKat is "immersive mode". Immersive mode gives the
- user the ability to show/hide the status bar and navigation bar with a swipe. To try,
- click the "Toggle immersive mode" button, then try swiping the bar in and out!
-
- Android 4.4 introduces a way for you to provide a more immersive screen
+experience in your app, by letting users show or hide the status bar and
+navigation bar with a swipe. This sample demonstrates how to enable toggling of this feature in a
+{@link android.support.v4.app.Fragment}.
-
- This sample shows you how to use {@link android.support.v7.widget.PopupMenu PopupMenu}
- from ActionBarCompat to create a list, with each item having a dropdown menu.
-
- This sample demonstrates how to use a backward compatible
+{@link android.support.v7.widget.PopupMenu PopupMenu} to create a list, where
+each list item contains a dropdown menu. The activity in this sample extends from
+{@link android.support.v7.app.ActionBarActivity}, which provides the
+functionality necessary to display a compatible action bar on devices
+running Android 2.1 and higher. This sample demonstrates how to use the {@link android.media.MediaRecorder}
+API to record video from a camera or camcorder, and display a preview of the
+recording.
-
- This sample demonstrates how to connect to the network and fetch raw HTML using
- HttpURLConnection. AsyncTask is used to perform the fetch on a background thread.
-
- This sample demonstrates how to connect to the network and fetch raw HTML.
+The sample uses {@link android.os.AsyncTask} to perform the fetch on a
+background thread.
-
- This sample shows you how a provide a context-sensitive ShareActionProvider with
- ActionBarCompat, backwards compatible to API v7.
-
- This sample demonstrates how to use a
+context-sensitive {@link android.support.v7.widget.ShareActionProvider} that is
+backward compatible. The activity in this sample extends from
+{@link android.support.v7.app.ActionBarActivity}, which provides the
+functionality necessary to display a compatible action bar on devices
+running Android 2.1 and higher.
-
- Using the OPEN_DOCUMENT intent, a client app can access a list of Document Providers
- on the device, and choose a file from any of them.
- \n\nTo demonstrate this, click the button below to open up the Storage Access Framework
- interface, and choose an image on your device. It will be displayed in this app.
-
- This sample demonstrates how to use the
+{@link android.content.Intent#ACTION_OPEN_DOCUMENT} intent to let users
+choose a file via the system's file browser. This intent allows a client
+application to access a list of document providers on the device, and choose
+a file from any of them.
-
- This sample shows you how to use ActionBarCompat with a customized theme. It utilizes a
- split action bar when running on a device with a narrow display, and show three tabs.
-
- This sample demonstrates how to use a backward compatible
+{@link android.support.v7.app.ActionBar} with a customized theme. The activity in this sample extends from
+{@link android.support.v7.app.ActionBarActivity}, which provides the
+functionality necessary to display a compatible action bar on devices
+running Android 2.1 and higher.
-
- This sample illustrates how links can be added to a TextView. This can be done either
- automatically by setting the "autoLink" property or explicitly.
-
- This sample demonstrates how to add clickable links to a
+{@link android.widget.TextView}, by using these techniques:
+
+
+
+
- - This sample illustrates the use of a TextSwitcher to display text. - \n\nClick the button below to set new text in the TextSwitcher and observe the - in and out fade animations. - -
+This sample demonstrates how to use the {@link android.widget.TextSwitcher} +view with animations. A {@link android.widget.TextSwitcher} is a type of +{@link android.widget.ViewSwitcher} that animates text transitions on screen +when {@link android.widget.TextSwitcher#setText(CharSequence)} is called.
diff --git a/samples/browseable/repeatingAlarm/_index.jd b/samples/browseable/repeatingAlarm/_index.jd index 6abb305c1..bd77d6c27 100644 --- a/samples/browseable/repeatingAlarm/_index.jd +++ b/samples/browseable/repeatingAlarm/_index.jd @@ -1,13 +1,9 @@ -page.tags="repeatingAlarm" +page.tags="RepeatingAlarm" sample.group=Background @jd:body -- - Introductory text that explains what the sample is intended to demonstrate. Edit - in template-params.xml. - -
+This sample demonstrates how to implement a repeating alarm using an +{@link android.app.AlarmManager}.
-- cgit v1.2.3