public static void openInAppMarket(final Context context) {
		final Activity activity = Activities.findActivityFrom(context);
		final Context starter = activity != null ? activity : context;
		final Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=" + GREENIFY_PKG)).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
		try {
			starter.startActivity(intent);
		} catch (final ActivityNotFoundException e) {
			try {
				starter.startActivity(intent.setData(Uri.parse("https://play.google.com/store/apps/details?id=" + GREENIFY_PKG)));
			} catch (final ActivityNotFoundException ignored) {}
		}
	}
Client helper for Greenify APIs

Created by Oasis on 2016/10/14.
mobile/src/main/java/com/oasisfeng/island/greenify/GreenifyClient.java