Author Topic: Convert BrowserBasic project to Android .apk  (Read 4528 times)

Guilect

  • Moderator
  • Full Member
  • *****
  • Posts: 110
    • View Profile
Convert BrowserBasic project to Android .apk
« on: 12. April 2014, 16:40:27 »
This program, made by Charles Strawbridge aka mrchay, allows you to take an html5 project and convert it to an Android .apk very simply.

Project page = https://bitbucket.org/mrchay/html5apkbuilder

In short : you need the Java Run time (JRE) but apparently not the Dev. Kit (JDK) installed.
You then copy your html5 project to the html5 folder and run the go.bat file.
In about a minute, the console window closes, and you have a signed apk in the same folder at the go.bat file.
The key used is a generic one but you can create your own (Google how) and place it in the key folder.

Note:
The download from the project page above includes 7z.exe and 7z.dll in the tools folder.
It appears that these are for 64 bit Windows OSes.
I replaced both of these files from my 32 bit install of 7-zip and it worked fine on my WinXP 32 bit OS.

SteveOW

  • Full Member
  • ***
  • Posts: 119
    • View Profile
Re: Convert BrowserBasic project to Android .apk
« Reply #1 on: 01. May 2014, 01:16:01 »
That (mrchay) looks interesting (but I havent tried it yet).

I just found out about another technique for getting HTML5 apps to run "natively" on Android OS.
see https://developer.chrome.com/multidevice/android/installtohomescreen

The author adds 2 lines of code to his .html file, and an icon image to his project on the server.

      <meta name="mobile-web-app-capable" content="yes">
           <link rel="icon" sizes="196x196" href="SW_196_x_196.png">

The Android user needs to install the browser "ChromeBETA" on his android device (free from the Play Store).
When the user has loaded the html page from the server into his ChromeBETA browser he can select the browser menu option "add to home screen".
ChromeBeta will then install a standalone app with a shortcut icon on the user's desktop/home screen (using the supplied icon image).
This app can then be run as a standalone application (without needing online access).
 
Seems to work OK (e.g. http://www.zen226082.zen.co.uk/PongGoneWrong4.html).

Limitations:- ChromeBETA is a bit unstable for a regular user.

It would be nice if all browsers could do this. ::)




« Last Edit: 01. May 2014, 12:55:03 by SteveOW »