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

     


Loading...
Similar Threads - Button links page
  1. bk101
    Replies:
    0
    Views:
    123
  2. loader
    Replies:
    0
    Views:
    94
  3. Jesse Keizer
    Replies:
    8
    Views:
    278
  4. LivnLyfe
    Replies:
    6
    Views:
    528
  5. Gleis
    Replies:
    1
    Views:
    456
  6. Georgiaboy9009
    Replies:
    9
    Views:
    349
  7. cbuchananbuchanan
    Replies:
    0
    Views:
    262
  8. amazijn
    Replies:
    11
    Views:
    547
  9. jkgraves
    Replies:
    4
    Views:
    468
  10. Samsung
    Replies:
    1
    Views:
    230

Share This Page

Loading...