98

Can we create android applications using HTML5?

1
  • 2
    Would you share the experience? What was your choice? Jun 18, 2013 at 17:34

7 Answers 7

49

You can write complete apps for almost any smartphone platform (Android, iOS,...) using Phonegap. (http://www.phonegap.com)

It is an open source framework that exposes native capabilities to a web view, so that you can do anything a native app can do.

This is very suitable for cross platform development if you're not building something that has to be pixel perfect in every way, or is very hardware intensive.

If you are looking for UI Frameworks that can be used to build such apps, there is a wide range of different libraries. (Like Sencha, jQuery mobile, ...)

And to be a little biased, there is something I built as well: http://www.m-gwt.com

1
  • 2
    Does phonegap let you compile your web-app (written in HTML) into an APK for use on android phones? If it does, do they charge for this?
    – Badrush
    Feb 28, 2016 at 19:45
27

Try Sencha Touch. It is a HTML5 compliant framework to build application for touch devices.

3
  • 1
    We have to install this software or any plugins for eclipse or itself only IDE ? Jan 28, 2012 at 13:04
  • 3
    It has got only the JavaScript and CSS. No installation is needed. You can use eclipse with JavaScript support for the development
    – Ajit Kumar
    Jan 29, 2012 at 9:11
  • it's free trial?
    – gumuruh
    Oct 13, 2019 at 8:42
18

Here is a starting point for developing Android apps with HTML5. The HTML code will be stored in the "assets/www" folder in your Android project.

https://github.com/jakewp11/HTML5_Android_Template.git

6
  • thas excellent. How can you communicate android native functions with your UI? May 10, 2014 at 16:39
  • 1
    @user1532587 - In the MyWebViewClient java class, you can add custom handling in the shouldOverrideUrlLoading() method.
    – jakewp11
    May 30, 2014 at 20:20
  • 1
    @jj_ In my experience I haven't been limited by using this approach. I am still able to use the GPS functionality, local storage and other hardware with some work-arounds. I don't typically use this approach when developing, as I prefer to develop natively, but I know some people just want to quickly turn their website into an app, so I made this template.
    – jakewp11
    Jul 20, 2015 at 21:04
  • 1
    Is ECILPSE required for this?
    – Badrush
    Feb 28, 2016 at 19:48
  • 1
    @Badrush no, you can run it on Android Studio with few project settings change, also you can see Migrate to Android Studio from Eclipse.
    – Talha
    Oct 10, 2016 at 8:08
9

When people talk about HTML5 applications they're most likely talking about writing just a simple web page or embedding a web page into their app (which will essentially provide the user interface). For the later there are different frameworks available, e.g. PhoneGap. These are used to provide more than the default browser features (e.g. multi touch) as well as allowing the app to run seamingly "standalone" and without the browser's navigation bars etc.

7

You can use WebView and create a app that put your site inside. https://developers.google.com/chrome/mobile/docs/webview/gettingstarted

0

you can use webview in android that will use chrome browser Or you can try Phonegap or sencha Touch

2
  • 3
    This is a collection of the core keywords from other, upvoted, older answers.
    – Yunnosch
    May 25, 2018 at 6:53
  • but sencha has a trial one instead of open source (totally not free).
    – gumuruh
    Oct 13, 2019 at 9:51
0

The WebIntoApp.com V.2 allows you to convert HTML5 / JS / CSS into a mobile app for Android APK (free) and iOS.

(I'm the author)

Not the answer you're looking for? Browse other questions tagged or ask your own question.