On an Android Cupcake (1.5) enabled device, how do I check and activate the GPS?
This piece of code checks GPS status
final LocationManager manager = (LocationManager) getSystemService(Context.LOCATION_SERVICE ); if ( !manager.isProviderEnabled( LocationManager.GPS_PROVIDER ) ) { buildAlertMessageNoGps(); }
`