Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Apache License 

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

import android.net.Uri;

public class Main {
    /**
     * 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();
        }
    }
}