Questions tagged [android-geofence]

Represents a geographical region, also known as a geofence.

Geofences can be monitored by geofencer service. And when the user crosses the boundary of a geofence, an alert will be generated.

As currently implemented, in the Google Play Services API, geofences are circular, defined using coordinates (lat, long) and radius.

Documentation

563 questions
0
votes
1 answer

Can we propogate signal from android application to know another user having the same application in android phone

I am building an android app as my project. I need to implement a functionality which can let me know the same types of users (having my application in their phone) around in 1-5 meter distance. Is there anything that i can use or can i propogates…
0
votes
0 answers

How to display RequestID on enter/exit geofence?

I would like to display the RequestId (or name) of the geofence objects when enter/exit event happen. I can return the RequestID for the objects by calling mList.get(1).getRequestID(). But I see no way to pass this to the pending intent or to…
0
votes
1 answer

How to show view when clicking Google Maps marker?

In this tutorial there is this screenshot: I want to show such a view when clicking on the info window of a marker. I am already handling the onInfoWindowClick: @Override public void onInfoWindowClick(Marker arg0) { Log.i(TAG,…
stefan.at.kotlin
  • 15,347
  • 38
  • 147
  • 270
0
votes
1 answer

Android: Mimicking Geofence with BroadcastReceiver and Location Updates

I am trying to build an App, that based on location queries the database to find scheduled tasks, given latitude, longitude and a radius. I have found many answers, articles and libraries online that do similar things, but look very sophisticated…
Grigor
  • 4,139
  • 10
  • 41
  • 79
0
votes
2 answers

Android locationClient not connected exception thrown from inside OnConnected

I have a Android application that uses geo-fences are being added in the following code: public void register(ArrayList geofences){ if(geofences == null || geofences.size() == 0) return; this.geofences = geofences; …
Duncan Roosma
  • 481
  • 7
  • 21
0
votes
1 answer

Android Geofence example as aService

I am trying to implement the android developers Geofence sample as a background service in my application. I want to convert the GeoActivity to a service. How can I do that...Or is there any way to run this activity in background and having another…
user1901079
  • 427
  • 2
  • 7
  • 19
0
votes
0 answers

In Android 4.4+ versions, geofence not working over 3G/WiFi

I am using the sample application(Creating and Monitoring Geofences) provided by Android. On Android 4.4+ (KitKat )versions only, I am not able to add/delete Geofences over 3G or WiFi. Every time I am getting error code 1000(" Add Geofences:…
0
votes
3 answers

Google Play Services location API usage limits

If you're using the newer Android Location API features like Geofences or ActivityUpdates via Google Play Services, are you subject to any usage limits? I know there's limits like, e.g. registering 100 Geofences at a time, but beyond that any…
Mick O'Hea
  • 1,619
  • 2
  • 14
  • 20
0
votes
1 answer

Android show android natice pop up settings/cancel to enable location service

I am working on an android application that uses geo location services, when the user accesses such service if location access is disabled on the device i want to call android native pop up that guides user to enabled location access. Is it possible…
sundeep
  • 601
  • 1
  • 8
  • 21
0
votes
1 answer

Geofencing in Android

I am getting a kmz-file from a webservice, which I use for geofencing. The app is responsible to check whether the gps-location of the phone is within the geofence, or not. I don't really know how the kmz-file will be structured (I am not creating…
deimos1988
  • 5,896
  • 7
  • 41
  • 57
0
votes
1 answer

Running Geofence app on android emulator

Is there a way to run the sample Geofence app provided on the Android emulator: http://developer.android.com/training/location/geofencing.html The app shuts down on initiation and I get these error messages on LogCat: 05-28 11:54:35.397:…
stud91
  • 1,854
  • 6
  • 31
  • 56
0
votes
1 answer

How to know in which geofence am I?

I'm using geofencing with Android. I have created the geofencing and I received when I enter or exit from a geofence. No problem. But I want to know if exists a method to know in which geonfences am I in a moment, without save all the transitions…
user1852854
  • 199
  • 1
  • 1
  • 11
0
votes
1 answer

Google's geofence app not working

I have downloaded a Geofence Sample Application form here but it is not working .I have replaced actions in GeofenceUtils class by putting app package name e.g com.example.android.geofence.ACTION_CONNECTION_ERROR is replaced by…
user3222934
0
votes
1 answer

I do not get geofence notifications

I'm writing an Android application that notifies the user when he enters a specific region. For this I used the Geofence API from Android. I have tried Google's GeofenceDetection sample, and The application does not get notified at all. I call…
DuduArbel
  • 1,100
  • 1
  • 12
  • 25
0
votes
1 answer

Point in Polygon Test

I have searched for lot of threads but still I am facing the issue. I have to find out if a lat/lng is inside or outside the polygon. I have used following method: private boolean LineIntersect(LatLng tap, LatLng vertA, LatLng vertB) { …