• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2<h3>Activity</h3>
3<dl>
4  <dt><a href="HelloWorld.html">Hello World</a></dt>
5  <dd>Demonstrates a basic screen activity.
6  <dl>
7  <dt>Code:
8  <dd> <a href="HelloWorld.html">HelloWorld.java</a>
9  <dt>Layout:
10  <dd> <a href="../../../../../../res/layout/hello_world.html">
11  hello_world.xml</a>
12  </dl>
13  </dd>
14  <dt><a href="SaveRestoreState.html">Save &amp; Restore State</a></dt>
15  <dd>Demonstrates how an activity should save state when it is paused.</dd>
16
17  <dt><a href="PersistentState.html">Persistent State</a></dt>
18  <dd>Demonstrates how you can save and restore preferences, which are stored
19  even after the user closes the application. </dd>
20
21  <dt><a href="ReceiveResult.html">Receive Result</a></dt>
22  <dd>Demonstrates how an activity screen can return a result to the
23  activity that opened it. </dd>
24
25  <dt><a href="Forwarding.html">Forwarding</a></dt>
26  <dd>Demonstrates opening a new activity and removing the current activity
27  from the history stack, so that when the user later presses BACK they will
28  not see the intermediate activity.</dd>
29
30  <dt><a href="RedirectEnter.html">Redirection</a></dt>
31  <dd>Demonstrates how to save data to preferences and use it to determine
32  which activity to open next.</dd>
33
34  <dt><a href="TranslucentActivity.html">Translucent</a></dt>
35  <dd>Demonstrates how to make an activity with a transparent background. </dd>
36
37  <dt><a href="TranslucentBlurActivity.html">TranslucentBlur</a></dt>
38  <dd>Demonstrates how to make an activity with a transparent background with
39  a special effect (blur). </dd>
40</dl>
41
42<h3>Service</h3>
43<dl>
44  <dt><a href="LocalService.html">Local Service Controller and
45        Local Service Binding</a></dt>
46  <dd>Demonstrate the implementation of a service that runs in the same
47  process as its client(s).  Shows how those clients can either start/stop it
48  with {@link android.content.Context#startService
49  Context.startService} and {@link android.content.Context#stopService
50  Context.stopService}, or bind and call it with
51  {@link android.content.Context#bindService Context.bindService} and
52  {@link android.content.Context#unbindService Context.unindService}.
53  This also shows how you can simplify working
54  with a service when you know it will only run in your own process.</dd>
55
56  <dt><a href="RemoteService.html">Remote Service Controller and
57        Remove Service Binding</a></dt>
58  <dd>Demonstrates starting a service in a separate process, by assigning
59  <code>android:process=&quot;:remote&quot;</code> to the service in the
60  AndroidManifest.xml file.  Shows how those clients can either start/stop it
61  with {@link android.content.Context#startService
62  Context.startService} and {@link android.content.Context#stopService
63  Context.stopService}, or bind and call it with
64  {@link android.content.Context#bindService Context.bindService} and
65  {@link android.content.Context#unbindService Context.unindService}.
66  Binding is similar to the local service sample,
67  but illustrates the additional work (defining aidl
68  interfaces) needed to interact with a service in another process.  Also
69  shows how a service can publish multiple interfaces and implement
70  callbacks to its clients.</dd>
71
72  <dt><a href="ServiceStartArguments.html">Service Start Arguments Controller</a></dt>
73  <dd>Demonstrates how you can use a Service as a job queue, where you
74  submit jobs to it with {@link android.content.Context#startService
75  Context.startService} instead of binding to the service.  Such a service
76  automatically stops itself once all jobs have been processed.  This can be
77  a very convenient way to interact with a service when you do not need
78  a result back from it.</dd>
79
80  <dt><a href="ForegroundService.html">Foreground Service Controller</a></dt>
81  <dd>Shows how you
82  can write a Service that runs in the foreground and works on both pre-2.0
83  and post-2.0 versions of the platform.  This example will selectively use
84  the new foreground APIs that were introduced in Android 2.0 if they are
85  available.</dd>
86
87</dl>
88
89<h3>Alarm</h3>
90<dl>
91  <dt><a href="AlarmController.html">Alarm Controller</a></dt>
92  <dd>Demonstrates two ways you can schedule alarms: a one-shot alarm that
93  will happen once at a given time, and a repeating alarm that will happen
94  first at a given time and then continually trigger at regular intervals
95  after that.
96  <dl>
97  <dt>Code:
98  <dd> <a href="AlarmController.html">AlarmController.java</a>
99  <dd> <a href="OneShotAlarm.html">OneShotAlarm.java</a>
100  <dd> <a href="RepeatingAlarm.html">RepeatingAlarm.java</a>
101  <dt>Layout:
102  <dd> <a href="../../../../../../res/layout/alarm_controller.html">
103  alarm_controller.xml</a>
104  </dl>
105  </dd>
106
107  <dt><a href="AlarmService.html">Alarm Service</a></dt>
108  <dd>Demonstrates how you can schedule an alarm that causes a service to
109    be started.  This is useful when you want to schedule alarms that initiate
110    long-running operations, such as retrieving recent e-mails.
111  <dl>
112  <dt>Code:
113  <dd> <a href="AlarmService.html">AlarmService.java</a>
114  <dd> <a href="AlarmService_Service.html">AlarmService_Service.java</a>
115  <dt>Layout:
116  <dd> <a href="../../../../../../res/layout/alarm_service.html">
117  alarm_service.xml</a>
118  </dl>
119  </dd>
120</dl>
121
122<h3>Notification</h3>
123<dl>
124  <dt><a href="NotifyWithText.html">NotifyWithText</a></dt>
125  <dd>Demonstrates popup notifications of varying length.</dd>
126
127  <dt><a href="IncomingMessage.html">IncomingMessage</a></dt>
128  <dd> Demonstrates sending persistent and transient notifications, with a View object in the notification. It also demonstrated inflating a View object from an XML layout resource. </dd>
129</dl>
130
131<h3>Search</h3>
132<dl>
133  <dt><a href="SearchInvoke.html">SearchInvoke</a></dt>
134  <dd>Demonstrates various ways in which activities can launch the Search UI.</dd>
135
136  <dt><a href="SearchQueryResults.html">SearchQueryResults</a></dt>
137  <dd>Demonstrates an activity that receives Search intents and handles them.</dd>
138
139  <dt><a href="SearchSuggestionSampleProvider.html">SearchSuggestionSampleProvider</a></dt>
140  <dd>Demonstrates how to configure and use the built-in "recent queries" suggestion provider.</dd>
141</dl>
142
143
144