Guest User

Untitled

a guest
Mar 18th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. public static void installServiceProviderIfNeeded(Context context) {
  2. try {
  3. ProviderInstaller.installIfNeeded(context);
  4. } catch (GooglePlayServicesRepairableException e) {
  5. e.printStackTrace();
  6.  
  7. // Prompt the user to install/update/enable Google Play services.
  8. GooglePlayServicesUtil.showErrorNotification(e.getConnectionStatusCode(), context);
  9.  
  10. } catch (GooglePlayServicesNotAvailableException e) {
  11. e.printStackTrace();
  12. }
  13. }
Add Comment
Please, Sign In to add comment