I want to check location service is open or not when the app starts. I use this code :
LocationManager lm = (LocationManager) getSystemService(LOCATION_SERVICE); if(!lm.isProviderEnabled(LocationManager.GPS_PROVIDER))
However this code check GPS open or not. In my program, i don't need GPS. I just need location access permission. How can i do that?
Thanks for help.