1. Are you ready for the Galaxy S20? Here is everything we know so far!

Button links to page on app market only goes to homepage

Discussion in 'Android Development' started by ktUK, Apr 25, 2012.

  1. ktUK

    ktUK Newbie
    Thread Starter

    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.​
    new View.OnClickListener(){
    public void onClick(View v) {
    new Intent( Intent.ACTION_VIEW, Uri.parse("market://details?id=pname:prodice.****.**});


    1. Download the Forums for Android™ app!



Share This Page