I have just found this out and its such a marvel to share. These are the steps for a MS-Windows install
Now you are ready to package and run your app on the Chrome Browser as an extension.
1. In a command prompt, in the folder where your apk resides, run the following command: chromeos-apk [NAME OF APK]
2. This should create a folder e.g. [Package Name].android
3. Inside this folder, on the _locales folder, find a file named
messages.json
4. Right click on it and edit the file
5. Ensure that this section, does have the message element, if not add it, dont forget the comma at the end of the "description". The message should be the same as the package name as per your
manifest.json file on the root of this folder.
"extName": {
"description": "Extension name"
,
"message": "com.b4a.Example"
}
6. Save the file
Load your app as an extension for Google Chrome like this
- Open your extensions page in Chrome by going to Menu > More Tools > Extensions
- Enable Developer mode in the top right corner, if it is not already enabled.
- Select "Load unpacked extension."
- Choose the folder containing the package as in step 3.
If all goes well your app should be on the Chrome App Launcher.
Hoping someone finds this useful..
PS: on the Chrome Store, there is an app called
twerk that does what you manually did with
chromeos-apk [NAME OF APK], however rename your .apk to .zip
For other OS, see http://lifehacker.com/how-to-run-android-apps-inside-chrome-on-any-desktop-op-1637564101