Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML5 Android Development

I am interesting in making an android application, while my primary hobbies is web development. Now the thing that is confusing me is that people make applications in HTML5/CSS3/JavaScript languages, are those apps running on web browsers on android mobile or running like an installed application on android?

like image 641
Cookie Avatar asked Sep 13 '14 11:09

Cookie


People also ask

Can I use HTML for Android development?

Yes, you read it right in the title of this article. In this article, we are going to build an Android App with HTML, CSS, and JavaScript in Android Studio.

What is HTML5 Android?

An HTML5 mobile app is a Web application developed with that version of the Web content standard and designed for smartphones, tablets and other handheld devices. HTML5 enables more complex functions than earlier versions of the standard, which means that files created with it can be more like apps than like content.

Can HTML5 be used for mobile apps?

The same HTML5 app will work on different mobile operating systems, whether that's iOS, Android, Windows Phone or Blackberry; the upshot of this is that the cost of developing the app is much lower than creating native apps for each OS.

Can you make an app with HTML5?

HTML5 mobile apps have clear advantages. They can be cheaper and easier to create because so many people know JavaScript. And since JavaScript runs on any browser, an HTML5 app will run on any mobile device (at least in theory).


1 Answers

Well you can design and develop your app in 3 ways

  • Native: full Java code in Android case, or Objective-C or Swift now in iOS
  • Web: HTML5, CSS3, JavaScript
  • Hybrid: a mixture of the two

If you are a web developer you can design your app in HTML5 and then use a wrapper like PhoneGap or Apache Cordova which will simply wrap or package your app in a WebView (a Webview is like a simple browser inside a native app).

Then you will have your APK like any other app in Google Play, so yes it's a full application that can be installed, updated and deleted of course, in any Android device

But there is a difference between the two, like the speed varies depending on the app type: previously, web apps couldn't gain access to the accelerometer, camera, gyroscope etc, but now with the bunch of APIs available, you do have the ability to access them in very simple ways.

A full definition of a webView

The WebView class is an extension of Android's View class that allows you to display web pages as a part of your activity layout. It does not include any features of a fully developed web browser, such as navigation controls or an address bar. All that WebView does, by default, is show a web page.

More info about WebView Here

like image 124
Nadir Belhaj Avatar answered Oct 06 '22 11:10

Nadir Belhaj