Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void installServiceProviderIfNeeded(Context context) {
- try {
- ProviderInstaller.installIfNeeded(context);
- } catch (GooglePlayServicesRepairableException e) {
- e.printStackTrace();
- // Prompt the user to install/update/enable Google Play services.
- GooglePlayServicesUtil.showErrorNotification(e.getConnectionStatusCode(), context);
- } catch (GooglePlayServicesNotAvailableException e) {
- e.printStackTrace();
- }
- }
Add Comment
Please, Sign In to add comment