Create Intent to rate My App - Android Intent

Android examples for Intent:Open App

Description

Create Intent to rate My App

Demo Code

import android.content.Context;
import android.content.Intent;
import android.net.Uri;

public class Main {

  public static void rateMyApp(Context ctx, String pkg) {
    String addres = "market://details?id=" + pkg;
    Intent marketIntent = new Intent("android.intent.action.VIEW");
    marketIntent.setData(Uri.parse(addres));
    ctx.startActivity(marketIntent);//from  w  w w  .  j  av  a 2  s. com
  }
}

Related Tutorials