• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Html & JS File to Android App

jsrv2004

Lurker
I have created a html file.

I have a created a Js file along with it.

This is a multiple choice Game program.

I want to convert it into Apk.

Kindly guide Me.

Thanks,

Mohan
 
Hi Jsrv2004.

Three ways of doing this:

Method 1. Download latest version of Eclipse with latest Android SDK and create, build and run a project. These two links should guide you after installing Eclipse:
Creating an Android Project | Android Developers
Building and Running from Eclipse with ADT | Android Developers
I highly suggest following them two links.
In your onCreate method you could use the following to open the webpage in a separate browser:
Intent browserIntent = new Intent(Intent.ACTION_VIEW,Uri.parse("http://www.gerbyte.com"));
startActivity(browserIntent);

or you could use a webView element in the main view if you wish not to use a seperate browser.


Method 2. Upload the web page to a server and distribute that link. It will (most probably) work in an Android browser.

Method 3. See method 1. :)

The nature of your question makes me wonder why would want to turn a website into an apk.

Hope this helps. :)
 
This is not just a website.

It is a multichoice game.

I donot know how to create a standalone application using android.

So I created it with the help of html and java.

It is a small application of 4 mb by attaching 2 files and a few photographs.

If I mail you the files, can you do this conversion to apk for me please.

Thanks,

Mohan
 
Back
Top Bottom