Any Browser 2 Android [Update: Compatability Broken]
Friday, May 21, 2010 12:52:18 AM
Earlier today Google released Android 2.2 (Froyo) at Google I/O.
One new feature in Froyo is the "Android Cloud to Device Messaging Framework", which allows servers to push small messages to devices. E.g. notification of new mail etc.
One of the examples that Google released was called ChromeToPhone
ChromeToPhone is very similar to my QR2Droid in that it's purpose is to send the URL that you are currently viewing from your browser, and open it on your phone once you are logged in with the same Google account on both devices. It does it quite well with the URL appearing in the notification bar.
As I don't use Chrome this extension was useless to me. So with some quick 'n' dirty hacking, I've created a cross browser bookmarklet that will create a popup that sends the current url to your Android 2.2 device, once the ChromeToPhone APK is installed, and will work from any browser.
To use Browser2Android simply bookmark the code below, then Opera users can then shift+drag the bookmark to the address bar for quick access. Works on Opera, Firefox, Chrome and even IE.
Following on from creating a bookmarklet I have also created by a Firefox extension so that users can add a button to their address bar, or right click on a link to send a link to their Android phone. (chrometophone.apk is still required on the device.)
The add-on for Firefox, Thunderbird & SeaMonkey can be downloaded from Mozilla. amla70 created one at the same time so we merged our code, which is available on the Mozilla site. He did the great work on the notification popup etc.
Unfortunately the previous implementation of the chrometophone opened up the potential of nasty cross site scripting attacks (XSS) and so some changes were made to combat this. However in doing so the functionality of AnyBrowser2Android was broken and this bookmarklet has been discontinued.
Firefox users can continue to use Send To Phone which will continue to be updated and maintained with feature parity to the Google Chrome extension.