Home | History | Annotate | Download | only in location

Lines Matching full:updates

10     <li><a href="#RequestUpdates">Request Activity Recognition Updates</a></li>
11 <li><a href="#HandleUpdates">Handle Activity Updates</a>
12 <li><a href="#RemoveUpdates">Stop Activity Recognition Updates</a>
20 <a href="receive-location-updates.html">Receiving Location Updates</a>
35 driving, or standing still. Requests for updates go through an activity recognition client,
39 each one. This lesson shows you how to request activity recognition updates from Location
42 <h2 id="RequestUpdates">Request Activity Recognition Updates</h2>
44 Requesting activity recognition updates from Location Services is similar to requesting
45 periodic location updates. You send the request through a client, and Location Services sends
46 updates back to your app by means of a {@link android.app.PendingIntent}. However, you need to
47 request a special permission before you request activity updates, and you use a different type
49 connect the client, and request updates.
51 <h3>Request permission to receive updates</h3>
53 An app that wants to get activity recognition updates must have the permission
249 {@link android.app.PendingIntent} that Location Services uses to send updates to your app:
292 * to send activity recognition updates back to this app.
309 Define a method that requests activity recognition updates. In the method, request a
311 purpose is to start the chain of method calls for requesting updates.
320 The following snippet shows how to start a request for updates:
340 * Request activity recognition updates based on the current
372 In this method, request activity recognition updates from Location Services. When Location
384 * Continue by requesting activity updates.
389 * Request activity recognition updates using the preset
495 <h2 id="HandleUpdates">Handle Activity Updates</h2>
500 sends out activity recognition updates as {@link android.content.Intent} objects, using the
517 * Service that receives ActivityRecognition updates. It receives
518 * updates in the background, even if the main Activity is not visible.
634 <h2 id="RemoveUpdates">Stop Activity Recognition Updates</h2>
636 To stop activity recognition updates, use the same pattern you used to request updates,
643 Since removing updates uses some of the methods you use to add updates, start by defining
681 * Request activity recognition updates using the
705 Define a method that requests a stop to activity recognition updates. In the method,
708 stop activity updates:
715 * Turn off activity recognition updates
754 Pass the {@link android.app.PendingIntent} you used to start updates as the parameter to
784 activity recognition with other location-aware features, such as periodic location updates or