Smart-android-market-link is a project mainly written in ..., it's free.
Choose to redirect the link to web or mobile app depending on user-agen
Simple tool to choose whether to go the android marketplace or the web page for the android market depending on the requesting User-Agent. (Android goes to market:// , everything else to http://market.android.com )