Sunday, July 19, 2020

How to Check GPS Status in Android

How to check GPS/ Location Service is Enabled in Android

In Android, It is very easy to check whether GPS or Location Service are enabled or not.

For this we need to declare Location related permission in Manifest

<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>

Method to check GPS in ANDROID

public boolean checkGPSGPSEnabled()

    LocationManager lm = (LocationManager)getSystemService(Context.LOCATION_SERVICE);
    boolean isGPSenabled = lm.isProviderEnabled(LocationManager.GPS_PROVIDER);
    Log.i("KAMLESH","Location Enabled "+isGPSenabled);
    return isGPSenabled;


  1. Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I'll be subscribing to your feed and I hope you post again soon. Big thanks for the useful info. บาคาร่าออนไลน์

  2. Yes i am totally agreed with this article and i just want say that this article is very nice and very informative article.I will make sure to be reading your blog more. You made a good point but I can't help but wonder, what about the other side? !!!!!!Thanks 토토랜드

  3. This particular is usually apparently essential and moreover outstanding truth along with for sure fair-minded and moreover admittedly useful My business is looking to find in advance designed for this specific useful stuffs… 메이저놀이터

  4. I really like you words and appreciate your article post. Really Cool please keep writing.

  5. You have fantastic creating abilities. I'm so pleased to discover the exact same subject I have actually been searching for. Everybody is providing me a great deal of praises today. You're incredible. As an author, you're so trendy since you're such a fantastic author. Why do not you come and also see my article?바카라사이트

  6. 메이저놀이터추천December 7, 2021 at 12:54 AM

    I'm so happy to finally find a post with what I want. 메이저놀이터추천 You have inspired me a lot. If you are satisfied, please visit my website and leave your feedback.

  7. Hello, I'm happy to see some great articles on your site. Would you like to come to my site later? My site also has posts, comments and communities similar to yours. Please visit and take a look keonhacai

  8. Great post, your all points fully clarify, gps tracker ireland These steps are very helpful for us. Thank you for providing such a valuable information.

  9. Vending Ways is a UAE-based leading distributor of Coin Operated Washing machines for the MENA region. We take pride in our excellent service.front coinoperated washing machine

  10. Hi,
    Thanks for sharing the information with us it was very informative.

  11. I found this blog to be very helpful in teaching me how to enable the GPS/ Location Service on my Android device. ipvanish 2 yeal deal The instructions were easy to follow and the screenshots provided were a great visual aid.