Java tutorial
//package com.java2s; //License from project: Apache License import android.content.Context; import android.content.Intent; import android.net.Uri; import android.util.Log; public class Main { private static final String TAG = "CommonUtil"; public static void toMarket(Context context) { try { context.startActivity( new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=" + context.getPackageName()))); } catch (android.content.ActivityNotFoundException e) { Log.e(TAG, "market can't open " + e); } } }