简体   繁体   中英

Extract phone's exact location using GPS and change device settings according to it

Im creating an app that'll use GPS to determine user's exact location. User can manually add locations when he/she is actually on that location (something like add here),and user can add as many entries he want. Then when user goes back to any of those predefined locations,app should automatically detect the location and execute the task user asked to do (in here,something like put phone into silent/vibrate only or normal mode). how can I do that? Please help.

The first comment you received is along the right track for sure with Geofencing. I would check out this free course from Udacity.com... Google Location Services . The course will walk you through how to do almost exactly what you want. You will just need to tweak the code and add whatever else you want to your app.

I hope this helps! If you have any questions just comment!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM