How to get create geofence by asking people to walk around - android

We want to create an android app which allows you to mark your territory by opening the app and walking around. Any thoughts on that? How to turn a walking trail into geofence.

Related

Android geofences - doubts about the concept and limits

I am trying to understand the geofences concept correctly, in my case for an android app, and I have two questions.
Based on the documentation and examples, I see that I can create a zone based on a longitude, a latitude, and a radius, and I can create alerts when entering or exiting that zone.
so far, everything is correct.
My intention is the following:
I want to create a zone and be notified if another user, also with my app installed, enters the zone I have created.
Is this possible with geofences?
I am reading about it, but it is not clear to me if it is possible.
My second question is: the limit of 100 geofences per app, is it for each application package name, or for each installed application?
"Is this possible with geofences?" yes, just for every user fetch geofences data for somewhere (filessystem, enter by hand, form backend) and set up geofences on this particular piece of android device

Event based reminders when leaving your home or another location, forgot your keys?

I am looking for a reminder when I leave home. E.g, "have you got your keys, wallet, glasses?"
I have considered, without success, google's location based reminder but they just do not seem to work accurately and I see no option for when leaving a location like 'home' only when entering a location like 'home'.
The closest solution I have found is an app on ios that will allow you to set a coordinate and using the phone's built in step counter it will deternind when you go "so many steps" out of the coordinate then it will fire a reminder. Unfortunaty the app "dont leave it" is ios only.
Then there's bluetooth tags you can buy and clip into things like keys wallet. But this offers less flexibility and is exspensive.
I have been thinking what if you could anchor your phone via bluetooth to a device in your house such as a bluetooth speaker or a google home device and when you leave your home and the connection goes out of range then your "leave home" reminders would notify. But then bluetooth range is pretty far like 15M? Nobody wants to go back up 4 flights of stairs to remember you forgot plastic carrier bags for grocery shopping.
An ideal solution, one I cannot see existing already, would be NFC scanners to the left and right of the house exit door that will interact with your phone's NFC to trigger event based reminders.
Forgive the lack of technological terms, I am approaching this topic at a very high level understanding off technology.
Does a geofencing event based reminder solution for android devices, that has not been mentioned, exist?
Regards
Mike

Android Tracking App - check if someone is getting closer or distancing from specific point

I created an android app, which stores user's home location and count distance between home and his/her actual location, in a Service class.
Now I would like to programme feature that would decide based on counted distance, if a user is:
at home
away
getting closer
distancing from home
This should be similar to Google Now, that can predict that you are for example going home. If someone had some examples, I would be sooo grateful
To implement such kinda work, you need to implement GeoFence in your android app.
GeoFence gives you idea about user entered/exited from a defined area. If you set home location as base location and radius to 500m then it gives you entered callback you are within 500m of your home.
When you go away 500m from your home location then it gives you exited callback. To know about whether you are home location then at a interval of few minutes you can poll GPS coordinates then can identify whether you are at your home location.
https://developer.android.com/reference/com/google/android/gms/location/Geofence.html

Android Geofencing sample app only works if another app is open using GPS

I am working with the Geofence API Sample application I've got it running and seems to work alright. I did make the modifications to it to use BroadcastReceiver instead of the IntentService.
But I will only get the notifications if I have some other app open that is using GPS such as Maps, or GPS Tester app.
If I don't have one of those apps open and I walk into the geofence zone nothing happens. But as soon as I launch one of them I will get the notification within a few seconds.
I ended up creating a service that forces the GPS to stay active by requesting location updates on a relatively quick interval.
While this is admittedly a poor work around for a "real" application. It worked for my purposes. In which I needed to be able to present a working proof of concept to an audience, which impeded my ability to use a geo points which were further spread out.
Even I too had a struggle with getting Geofence notification as soon I entered Geofence or Exit the one.There were always delays in notifications until I found a really nice Location Library called little-fluffy-location-library which serves my purpose.Location updates will be broadcast to your app periodically.
According the Documentation it says that:
The library works by using Froyo's passive location listener (only possible with Android 2.2 and up, hence why it works best with it), which listens to location updates requested by other apps on your phone. The most accurate location is broadcast to your app approximately every 15 minutes. If a location update hasn't been received from another app for an hour, the library forces a location update of its own.
I think you should give a try with this Library and Let me know if it works for you!!

Proximity Alert

I want to make an application for Android 2.2+, utilizing the GPS. Basically I want to be able to set a specific zone in the app, using google maps.
Example: I am walking to the store, as soon as I am x (variable) meters away from my house I want an alarm going off on my phone.
I googled and saw that you can use proximity alerts to get a notification when you are close to a friends house or something like that. They used specific coordinates for this. I want to be able to draw a line on a map or use a street name, and as soon as i cross that line i want an alarm to go off. If anyone could point me to some tutorial for that part or give some advice, that would be great.
I think you need to map your line in google maps yourself with some formula.
Proximity alerts work with a radius. You might need to set up multiple points with a small radius along your line.
You will get either the entering Intent or the exiting intent.
http://developer.android.com/reference/android/location/LocationManager.html#KEY_PROXIMITY_ENTERING

Categories

Resources