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


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…


…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.