open Developer Page On Google Play - Android App

Android examples for App:App Market

Description

open Developer Page On Google Play

Demo Code


//package com.java2s;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;

public class Main {
    public static void openDeveloperPageOnGooglePlay(Context context,
            String pubName) {/*from   w ww. ja  va 2  s  .  c  o  m*/
        try {
            Intent intent = new Intent(Intent.ACTION_VIEW);
            intent.setData(Uri.parse("market://search?q=pub:" + pubName));
            context.startActivity(intent);
        } catch (Exception ex) {
            ex.printStackTrace();
        }

    }
}

Related Tutorials