I write this code to receive location updates -
PendingIntent launchIntent = PendingIntent.getBroadcast(context, 5000, intent, 0);
manager.requestLocationUpdates(selectProvider(), 0, 0, launchIntent);
I select the gps provider if its available, otherwise the network provider. Is there a way I could switch back to the gps one if it gets enabled later?
Does the system broadcast an intent when gps provider is enabled or disabled? Could I set up a listener for the same?