
With the launch of Android and the possible major rival to the iPhone it is time to review how to make our sites more Android friendly. Although Android does not have millions of phones sold yet one major difference between iPhone and Android is that application development is easier on multiple platforms (Windows, Mac and Linux) and the ability to get new applications is not dependant on a controlled iTunes store.
Redirect Android users to a Separate Site
If you want to push Android users to another folder where you can then develop a more Android friendly design add the following to your .htaccess…
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} *.Android.*
RewriteRule ^index\.html$ Android/index.html
Site Width
The maximum pixel width of the Android screen is 320. If your site is currently optimized for a higher resolution then I suggest doing a redesign to make it fit in the 320 width. If you have an iPhone Friendly site already then adding a redirect would be a good solution.
Android Theme for your Blog
Although there is not a specific theme made for the Android you can install the iWPhone theme and plugin. Which works for the iPhone. Then in a text editor you can edit the iwphone.php to add android to it. Look for this code…
$useragents = array (“iPhone”,”iPod”);
Replace it with this…
 $useragents = array (“iPhone”,”iPod”,”Android”);
If your using WPtouch on your blog instead you should look for this code in your wptouch.php file…
$useragents = array(“iPhone”, “iPod”, “Aspen”);
Replace it with this…
$useragents = array(“iPhone”, “iPod”, “Aspen”,”Android”);
If you get stuck let me know in the comments.





Andrew. Estate Planning.
November 9, 2008 1:09 pm
Thanks for the link to the iWPhone plugin. That looks like a great plugin, and now you’ve showed us how to add Android too. Cool!
Sined Tranks
November 10, 2008 5:46 am
You are ahead of the pack here with this information about Google’s Android and how to use it…
Ruby Web
November 11, 2008 4:44 am
Hey, great idea. Thank you for this post, I will implement this this evening on my site. Many webmaters and developers don’t think about mobile (wap) users who visit their sites.
Ruby
November 12, 2008 5:38 am
Many developers don’t take wap and other mobile phone browsers into consideration when developing a site. Now this hack you’ve just shared with us is very thoughful of you and helpful immensely. Thank you,