Starts Google Play Services in Play application. - Android App

Android examples for App:App Market

Description

Starts Google Play Services in Play application.

Demo Code


//package com.java2s;

import android.content.Context;
import android.content.Intent;

import android.net.Uri;

public class Main {
    /**//from   w  ww  .j  av  a  2s.  c om
     * Starts Google Play Services in Play application.
     * @param context
     */
    public static void startGooglePlayServicesRefresh(Context context) {
        try {
            context.startActivity(new Intent(
                    Intent.ACTION_VIEW,
                    Uri.parse("http://play.google.com/store/apps/details?id=com.google.android.gms")));
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}

Related Tutorials