Category Archives: GPS

How to find location in Android using GPS?

By | July 25, 2017

This example helps you to find the location in Android using the GPS. I have commented out some functionality in the code. You can uncomment it and extend it at your wish. At first we will create a utility class that will handle all GPS related Operations. GPS Utility Class This class has all utility functions for getting… Read More »

How to find your Google Plus ID

By | September 27, 2012

This is so simple 1. Go to your Google + account ( 2. Click on the Profile icon on the Left. 3. If you look at the URL in the address bar, it should look something like this: 4. The long numerical string in the URL is your Google+ ID. Here is CoderzHeaven’s from the URL above:… Read More »

How to Check whether is GPS is enabled in your android device?

By | June 3, 2012

This simple code checks whether GPS in enabled in your android device or not. If the GPS is not enabled the user is redirected to the settings page. [java] LocationManager service = (LocationManager) getSystemService(LOCATION_SERVICE); boolean enabled = service.isProviderEnabled(LocationManager.GPS_PROVIDER); // Check if enabled and if not send user to the GPS settings if (!enabled) { Intent intent = new… Read More »

How to check whether GPS is available in ANDROID or Not?

By | February 24, 2011

This code helps you to check whether the location service is available on your ANDROID Phone or not. Copy this code and paste to your file. Happy coding….. [java] public boolean GPSAvailable() { LocationManager loc_manager = (LocationManager) getSystemService(Context.LOCATION_SERVICE); List<string> str = loc_manager.getProviders(true); if(str.size()>0) return true; else return false; } [/java]