turn on gps in App Inventor with the activity starter

751 views
Skip to first unread message

yoske plishtiv

unread,
Feb 16, 2017, 8:31:48 PM2/16/17
to MIT App Inventor Forum
how turn on gps in App Inventor with the activity starter

android.settings.LOCATION_SOURCE_SETTINGS its only open the location setting

SteveJG

unread,
Feb 16, 2017, 8:53:21 PM2/16/17
to mitappinv...@googlegroups.com
Google believes access to Location is a security issue.    Apparently this Java code once worked (  http://stackoverflow.com/questions/15426144/turning-on-and-off-gps-programmatically-in-android-4-0-and-above ) using Java.  Apparently you can not change the location setting programably anymore.  You can try it.

You can use the ActivityStarter to display a screen like this with an intent


and allow the user to manually turn it on.


Regards,
Steve
Reply all
Reply to author
Forward
0 new messages