Is it possible to turn on LocationProviders(GPS Provider/Network Providers) on Device programatically, if it is turned off?
i can turning on gps without problem in android 2.2 and 2.3, but in android 4.0 or 4.1 when i turn on gps with this code.gps icon appear in notifications,but i can not get current location in my program
Intent intent = new Intent("android.location.GPS_ENABLED_CHANGE");
intent.putExtra("enabled", true);
sendBroadcast(intent);
what i do now?i need it emergency