Android: How to check if a LocationProvider is available?

In Android the LocationProvider for example for GPS might not be available.

You can find out if a LocationManager is enabled via the isProviderEnabled() method. If its not enabled you can send the user to the settings via an Intent with the Settings.ACTION_LOCATION_SOURCE_SETTINGS action for the android.provider.Settings class.

This is demonstrated via the following code snippets:

LocationManager service = (LocationManager) getSystemService(LOCATION_SERVICE);
boolean enabled = service

// Check if enabled and if not send user to the GSP settings
// Better solution would be to display a dialog and suggesting to
// go to the settings
if (!enabled) {
  Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);

You find more info about the LocationManager in Location API and Google Maps in Android – Tutorial

Written by admin in: sample code |

Want to upgrade your Acer Iconia Tab A500 to ICS? There’s an app for that

With Android 4.0 Ice Cream Sandwich being rolled out for Acer Iconia Tab A500 and A100 this week, Acer has taken the initiative to release an app that will make the upgrade process faster and a tad easier for Acer owners.

The Iconia Tab Update Enhancement app, which you can download on Acer’s website and Google Play, is designed to make sure that the experience of downloading and installing the Ice Cream Sandwich update for your tablets will run as smooth as possible.  Fun as it is to frantically check for the update manually through the system’s settings, you’ll have a better chance of getting the ICS update faster via the app. However, do note that it is only compatible for the Iconia Tab A500 for now.

If you’re in the US and Latin America, you probably already got the ICS update notification, as it was supposed to roll out last week. Meanwhile, those in Canada are expected to get the ICS only on May 3. Still, it doesn’t hurt to try and install the app on your tabs. Once you receive the update, which we heard won’t come with the Face Unlock feature, it’s recommended to keep the Iconia Tab Update Enhancement app. You see, the app is also designed to handle security patches, fixes, and future updates for your Iconia Tab.

We should pat Acer on the back for being mighty proactive in delivering Ice Cream Sandwich for Tab owners and hopefully other manufacturers will take note of this.

As for our readers, have you received the Ice Cream Sandwich update on your Acer Iconia Tab A500 or A100 yet? Share your experience in the comments below.

This article, Want to upgrade your Acer Iconia Tab A500 to ICS? There’s an app for that , was originally published at AndroidAuthority.com - Your Android News Source.

Written by admin in: android, news |

ICS update now available for the Samsung I9100G

This image has no alt text

Being the least popular amongst all the siblings can be unpleasant, to say the least. Take the Samsung I9100G for example, the other international Galaxy S2 variant. Already disappointed to get an OMAP processor instead of an Exynos, it never got the ICS update it so wanted when the roll-out for the original S2 began.

The wait has finally ended, though, as GSM Arena reports that seeding for the update is well underway and just about all of its users should now see the notification.

Written by admin in: android, android news |

AndGPS | Connect Android Phone To GPS Solutions