user2388119
user2388119

Reputation: 31

Convert HTML5 application into standalone Android App

I have a dynamic HTML document that contains external resources (images, css and scripts are coded inside of document). This HTML5 application is working fine within an internet browser. Is it possible to convert this HTML5 application into a standalone Android application?

Please give me step by step instructions this is my first HTML app.

Upvotes: 3

Views: 3964

Answers (3)

Jorge Coca
Jorge Coca

Reputation: 101

You can try to develop a Google Chrome Packaged app. The new API will allow developers to create apps that run as a Chrome app, but also as a "native" app in both Android & iOS platforms.

Google provides an excellent documentation and tutorials. You can find more information here: http://developer.chrome.com/apps/about_apps.html

Upvotes: 1

skewl84
skewl84

Reputation: 184

You could use phonegap to convert your HTML5 application to a native android application http://phonegap.com/

Upvotes: 2

carte
carte

Reputation: 1083

I would recommend Phonegap (http://phonegap.com). You simply upload your web app to their service, and you can download the Android APK.

Now, although you can simply do the above and end there, Phonegap has unique sets of APIs that will allow you do a lot of native mobile functions that a typical web app does not have access to. This includes Geolocation, Accelerometer Camera, Contacts, Database, File system, and more, all through Javascript.

Few things to keep in mind while creating a HTML app for the first time:

  • Make sure your website is responsive. This way, any mobile device can view the page and users wont have to zoom in to an app created for the desktop.

  • Clicking tends to be laggy due to the 300ms delay on a mobile browser, so use fastclick.js (https://github.com/ftlabs/fastclick) to remove that and make your app quicker.

In addition, if you want to create an iOS or Windows phone app along with your Android App, Ph has the option to that too.

Upvotes: 2

Related Questions