java - Using Intent, to enable GPS doens't always work correctly. How do I fix -
The code below enables me to turn the user's GPS on and off, but many times it is correctly Although the icon for GPS scanning will be at the top of the screen in the user's Notification Bar The GPS icon will not be highlighted (The proprietor is enabled (eg LocationManager.GPS_PROVIDER );) Do not know if GPS is enabled or not. The code used to enable GPS: Screenshots: Does not support
intent = new intent ("android.location.GPS_ENABLED_CHANGE"); Intent.putExtra ("enabled", true); SendBroadcast;
Comments
Post a Comment