Convert HTML5 into standalone Android App

HTMLWeb DevelopmentFront End Technology

Follow the below-given steps to convert HTML5 into standalone Android App

  • You need to first create an Android app using Eclipse.

  • Move HTML code to /assets folder −
    The Assets provide a way to include arbitrary files such as text, XML, music, fonts, and video in your application.
  • Load web view with the file − android_asset/ file 

  • enable javascript

While creating a layout for WebView −

WebVieww = new WebView(this);
w.loadUrl("http://www.app.com/");
raja
Published on 20-Mar-2018 16:08:53
Advertisements