1. Download our Official Android App: Forums for Android!

Apps 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
    Rank:
    None
    Points:
    15
    Posts:
    22
    Joined:
    Feb 8, 2012

    Feb 8, 2012
    22
    0
    15
    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.****.**});

     

    Advertisement

Share This Page

Loading...