关于Geofence for Apps
创建应用程序的黑名单取决于地理位置,以防止他们开放
Straightforward guide to creating a geofence for apps:
1. Pick a location on map with an area around it to establish a geofence, you can also play with area size.
2. From all the apps installed on the device pick the ones you want to disable in this geofence.
3. That's it. Easy, right?(Unless you have an Android 6.+ device in which case app will lead you through an extra step to grant it a system user permission from Settings)
A background service will take care of monitoring which app is in the foreground on your device and showing an annoying message each time you try to return to the blacklisted app.
Warning: The app will not affect battery life while screen is off, but may contribute to battery drain while screen is on due to the portion of code running once every few seconds.
At the moment available only on the Android 5.+, compatibility for older versions coming soon.
This is an experiment with little practical application, yet here's one example: block social media apps when you're at work.
Source code: https://github.com/Manuiq/LocationFence/tree/master