im creating a GPS app , im trying to check if the devce that runs the app runs on version 4.2.2 or lower . if so the app can turn on / off the GPS service by it self with the command
Intent intent = new Intent("android.location.GPS_ENABLED_CHANGE");
intent.putExtra("enabled", true);
sendBroadcast(intent);
now if the device runs a version higher then 4.2.2 , the user will get a pupout message that link him for the manual turn on of GPS. thanks.