Sunday, October 17, 2010

0

Linking to the Market

  • Sunday, October 17, 2010
  • Ric RAT
  • Share
  • How do I link a post directly to an app on the Market?
    If you take a look at any of PlayDroid's game reviews, you'll see a QR code image that's also linked directly to the app in the Android Market. When a reader (such as yourself) clicks the QR link from within an Android web-browser session, the Market app will open and display the related app for download.

    Getting the actual code is a bit tricky, but I managed to figure it out via some other resources around the web.

    The url format is href="market://search?q=pname:<app id>"

    Next, you'll need to find the app or game's ID. As it turns-out, the website cyrket.com actually displays the ID in the browser's address bar once you've searched and clicked on an app. Try it yourself! Once you're on the app-page, look at the address.

    The ID you'll need to copy is immediately following the /android/

    Copy the ID, paste it over the <app id> placeholder in the Android Market link url, and put the entire link in your website or blog. As an example, I've searched and created a link to the game, Everlands.

    Try this link from your phone and see what happens:
    market://search?q=pname:net.hexage.everlands

    Note: A trailing forward-slash ("/") at the end of the url will cause problems.

    UPDATE: There's a much simpler option... after finding the app on Cyrket, right-click the QRC image and copy the shortcut; it has everything you need! ta-da.


    0 Responses to “Linking to the Market”

    Post a Comment

    Subscribe