david
david

Reputation: 1127

How to link to my apps in Google Play from my app?

I have a small error that I can't seem to fix.

here's my code

public void moreApps(View v) {
    Intent intent = new Intent(Intent.ACTION_VIEW);
    intent.setData(Uri
            .parse("market://search?q=pub:dvir"));
    startActivity(intent);
}

I simply want to link to my apps, which can be found here: https://play.google.com/store/apps/developer?id=Dvir

What is the correct syntax?

Thanks in advance!

Dvir

Upvotes: 1

Views: 126

Answers (1)

jeevamuthu
jeevamuthu

Reputation: 2054

Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse("market://search?q=pub:Dvir"));
startActivity(intent);

Upvotes: 2

Related Questions