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:

  intent = new intent ("android.location.GPS_ENABLED_CHANGE"); Intent.putExtra ("enabled", true); SendBroadcast;   

Screenshots:

Enter image details Please see here this link: its SDK version problem high version this intent is here:

Does not support



Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -