Convert HTML5 into standalone Android App

AndroidHtmlMobileMobile Application

Android Problem Overview


I have a dynamic HTML5 document that does not contain any external resources (no images, css and scripts are coded inside of document). This HTML5 application is working fine with internet browser. I was wondering, if it would be possible to convert this HTML5 application into standalone Android application, so it can be executed directly without browser. Please advise.

Android Solutions


Solution 1 - Android

Create an Android app using Eclipse.

Create a layout that has a <WebView> control.

Move your HTML code to /assets folder.

Load webview with your file:///android_asset/ file.

And you have an android app!

Solution 2 - Android

You could use PhoneGap.

http://phonegap.com/

http://docs.phonegap.com/en/2.1.0/guide_getting-started_android_index.md.html#Getting%20Started%20with%20Android

This has the benefit of being a cross-platform solution. Be warned though that you may need to pay subscription fees. The simplest solution is to just embed a WebView as detailed in @Enigma's answer.

Solution 3 - Android

You can use https://appery.io/ It is the same phonegap but in very convinient wrapper

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionΩmegaView Question on Stackoverflow
Solution 1 - AndroidSudarshan BhatView Answer on Stackoverflow
Solution 2 - AndroidJimbaliView Answer on Stackoverflow
Solution 3 - Androidalexander.antsypovView Answer on Stackoverflow