Loading presentation...

Present Remotely

Send the link below via email or IM

Copy

Present to your audience

Start remote presentation

  • Invited audience members will follow you as you navigate and present
  • People invited to a presentation do not need a Prezi account
  • This link expires 10 minutes after you close the presentation
  • A maximum of 30 users can follow your presentation
  • Learn more about this feature in our knowledge base article

Do you really want to delete this prezi?

Neither you, nor the coeditors you shared it with will be able to recover it again.

DeleteCancel

Make your likes visible on Facebook?

Connect your Facebook account to Prezi and let your likes appear on your timeline.
You can change this under Settings & Account at any time.

No, thanks

Google's Geofencing APIs

No description
by

Matt Dup

on 17 September 2014

Comments (0)

Please log in to add your comment.

Report abuse

Transcript of Google's Geofencing APIs

To use Google's Geofencing API's you need:

GooglePlay SDK

Manifest:
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>

<service
android:name=".ReceiveTransitionsIntentService"
android:exported="false"
android:label="@string/app_name" />

A connected
LocationClient
object

A
List
of
Geofence
objects OR a list of Geofence IDs
Bare Bones
Check to see that GooglePlay is available

Avoid "Race Conditions"

Don't Launch Activities to handle entry and exit events
MeTracker
The App that helps you manage your time so you don't have to.
Google's
Geofencing
APIs

Best Practices
only getter on
Geofence
: getRequstId()

there's no way to get all of the currently registered
Geofences
(keep track of it yourself)

if device is already within a geofenced region, a entry event is triggered when that
Geofence
is registered

all
Geofences
are de-registered if the user disables location services or if the device is turned off
Some Things to Remember:
From the documentation:


"The Intent sent from Location Services can trigger various actions in your app, but you should not have it start an activity or fragment, because components should only become visible in response to a user action."
The problem:
My Solution
Am I within a geofenced region?
Yes
No
Full transcript