location-based-service

Android: Simple way to make a geofence?

醉酒当歌 提交于 2021-02-17 21:29:56
问题 I'm new to Android development and am creating an app that allows a User to create a Geo fence around a specific location for reminders. For example: Making a geofence around a grocery store to remind the user as he enters to pick up Orange Juice. Does anyone know of a tutorial that could help in developing something like this? 回答1: AFAIK there are no tutorials for geofencing, but it's pretty simple (assuming you want a circular fence). This tutorial will tell you how to get the user's

Location Alarm for Android?

一世执手 提交于 2019-12-17 22:57:04
问题 When starting my app, several POI coordinates shall be added to the Android System. Some hours later, my app is closed and the user walks close to one of the POI he shall get notified e.g. through a status message. Is this the right approach for my scenario? Are there more things available in Android to achieve this? public void addProximityAlert (double latitude, double longitude, float radius, long expiration, PendingIntent intent) 回答1: Yes, you would use LocationManager and