Emme Developer Well-Known Member Licensed User Longtime User Feb 19, 2018 #1 Hi to all! Is possibile to send a dialog with the request to enable the gps? Code: Copy StartActivity(GPS.LocationSettingsIntent) This code launch the setting in which you can enable the gps, but some application like Tinder implemented the direct dialog
Hi to all! Is possibile to send a dialog with the request to enable the gps? Code: Copy StartActivity(GPS.LocationSettingsIntent) This code launch the setting in which you can enable the gps, but some application like Tinder implemented the direct dialog
BillMeyer Well-Known Member Licensed User Longtime User Feb 20, 2018 #2 The answer is right here. The first snippet of code is exactly what you want - AND - it works - I've tried it. It also has a reference to runtime permissions which you will need with the new SDK's etc. Enjoy !! Upvote 0
The answer is right here. The first snippet of code is exactly what you want - AND - it works - I've tried it. It also has a reference to runtime permissions which you will need with the new SDK's etc. Enjoy !!
Emme Developer Well-Known Member Licensed User Longtime User Feb 20, 2018 #3 BillMeyer said: The answer is right here. The first snippet of code is exactly what you want - AND - it works - I've tried it. It also has a reference to runtime permissions which you will need with the new SDK's etc. Enjoy !! Click to expand... Hi! Thanks for the answer! I asked the question because i tried the snippet, and for me doesn't work as expected, but it opens the option page (no dialog). Maybe can be a problem of target sdk? Upvote 0
BillMeyer said: The answer is right here. The first snippet of code is exactly what you want - AND - it works - I've tried it. It also has a reference to runtime permissions which you will need with the new SDK's etc. Enjoy !! Click to expand... Hi! Thanks for the answer! I asked the question because i tried the snippet, and for me doesn't work as expected, but it opens the option page (no dialog). Maybe can be a problem of target sdk?
DonManfred Expert Licensed User Longtime User Feb 20, 2018 #4 The Dialog you need to do yourself. Show an alert and after the user click on OK you call the Setting Dialog. You can not change the setting from your app. Upvote 0
The Dialog you need to do yourself. Show an alert and after the user click on OK you call the Setting Dialog. You can not change the setting from your app.
Emme Developer Well-Known Member Licensed User Longtime User Feb 20, 2018 #5 DonManfred said: The Dialog you need to do yourself. Show an alert and after the user click on OK you call the Setting Dialog. You can not change the setting from your app. Click to expand... But how applications like Tinder achieve this? In the first screenshot i attacched, if you click on ok you don't go on setting, but you enable the gps without another next step Upvote 0
DonManfred said: The Dialog you need to do yourself. Show an alert and after the user click on OK you call the Setting Dialog. You can not change the setting from your app. Click to expand... But how applications like Tinder achieve this? In the first screenshot i attacched, if you click on ok you don't go on setting, but you enable the gps without another next step
DonManfred Expert Licensed User Longtime User Feb 20, 2018 #6 Emme Developer said: But how applications like Tinder achieve this? Click to expand... ask the author. I do not know a Public Api in Android for this. Wait till September and see if Tinder still works after Google forced us to set the targetsdk to 26. Upvote 0
Emme Developer said: But how applications like Tinder achieve this? Click to expand... ask the author. I do not know a Public Api in Android for this. Wait till September and see if Tinder still works after Google forced us to set the targetsdk to 26.