Enable GPS automatically when the app get start.

243 viewsandroid gps location-updates permission
0
Muhammed Nazil | 32 xp

Is there any method to enable GPS automatically when the app get start ?

Please help me ?

I need to start the GPS when the app get start. Don’t direct to any other page or popup window the application automatically enable the GPS option.

0
Soumik Shah | 27 xp
Best Answer Muhammed Nazil commented on answer

This link has complete code to how to enable and disble the GPS automatically. You cannot use intents to enable GPS anymore since it’s not allowed for security reasons since Android 4.4

http://www.digitstory.com/enable-gps-automatically-android/#.Wo4LOajwaUk