• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Button links to page on app market only goes to homepage

ktUK

Newbie
Feb 8, 2012
22
0
I am trying to make a button that links to the pro version of my application. I can only use the emulator to test it myself which doesn't support the market, but on a friends tablet it links only to the GooglePlay homepage. Here is the code to run the button, any ideas why it doesn't go to the page with my app on (I have blanked part of the package name only for posting on here)
Thank you very much for any help at all you can give.

Button Pro = (Button) findViewById(R.id.​
pro);
Pro.setOnClickListener(
new View.OnClickListener(){
public void onClick(View v) {
startActivity(
new Intent( Intent.ACTION_VIEW, Uri.parse("market://details?id=pname:prodice.****.**});

 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones