Upgrade your browser Download Chrome Download Chrome Download Firefox Download Firefox Download Opera Download Opera Download Safari Download Safari Download Explorer Download Explorer

Check out our newest children's book for iPad & iPhone: Who's in the Loo? Download Close

Robot Media

Blog

WP Android Shortcode: a WordPress plugin to add links to the Android Market


Warning: Illegal string offset 'href' in /home/robotmedia/robotmedia.net/wp/wp-content/plugins/wp-android-shortcode/wp-android-shortcode.php on line 30

Warning: Illegal string offset 'title' in /home/robotmedia/robotmedia.net/wp/wp-content/plugins/wp-android-shortcode/wp-android-shortcode.php on line 34

Linking to Android Market apps is somewhat problematic. Because Android Market links only work from Android devices, the most common way to link to an Android app is to offer a QR code of the app link that can be scanned with an app like Barcode Scanner.

However, when browsing from an Android device, a direct link to the Android Market is preferred. What works well for Android devices does not suit the rest and viceversa.

To solve this problem in our website we have created a very simple WordPress plugin called WP Android Shortcode. The plugin uses the [android] shortcode to convert Android Market links to the best option based on the platform. Android devices get a direct link to the Android Market, while the rest get the corresponding QR code. In both cases our nifty Android Market badge is used to clearly indicate that this is a link to an Android app.

For example, the following shortcode…

[android]market://search?q=pname:net.robotmedia.findtherobots[/android]

…is rendered as:

Android Market badge

You can also specify the app name like this:

[android href=”market://search?q=pname:net.robotmedia.findtherobots” title=”Find the Robots!”]

…which is rendered as:

Android Market badge

We encourage you to download the WP Android Shortcode plugin from WordPress.org and use it on your website.

7 thoughts on “WP Android Shortcode: a WordPress plugin to add links to the Android Market

  1. Pfff says:

    Hello

    Is this not working on a text widget in a side bar?

  2. admin says:

    Hi pfff. As far as I know shortcodes are not processed by default in widgets. This post might help.

  3. Pingback: 7 solutions QR codes gratuites pour WordPress | Blog Expert

  4. Martend Baas says:

    Just the plugin I needed for the site, it works great. The readers are very content with it. Thank You for making this plugin!

  5. Allan says:

    I have installed the plugin and put the link on my website on a page called “Apps” but the link opens up in the same window. How can I make it popup like your example does in a dialogue?

  6. karthimx says:

    Installed the plugin. works great. Thanks for sharing.

  7. Payonibiodo says:

    WP Android Shortcode: a WordPress plugin to add links to the Android Market | Robot Media http://www.vladlenaivfun.blogspot.соm

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>