Develop android Application using Html,Css and JavaScript

后端 未结 4 1266
情话喂你
情话喂你 2020-12-07 08:48

I would like to develop Android application using HTML, CSS and JavaScript with Android SDK. I dont want to use another tool like Titanium or PhoneGap.

Is it possibl

相关标签:
4条回答
  • 2020-12-07 09:06

    These days the easiest way to create Android apps based on HTML is to use DroidScript which can be found on Google Play.

    The same tool also allows you to build native (non-HTML) apps with pure JavaScript and it's far easier to use than PhoneGap/Cordova because it's aimed at novice coders.

    It's based on WebView actually, but all the hard work of handling the JS->Java bridge, permissions, local storage, APK building etc have been done for you by the DroidScript developers.

    0 讨论(0)
  • 2020-12-07 09:08

    The Short answer: Yes, you can develop apps using HTML / CSS / Javascript. Take two WebView Tutorials and call me in the morning.

    The Long Answer: If you want to write apps for Android that use HTML / CSS / Javascript, you'll have to at least create a native WebView wrapper. This is relatively easy to do -- unless you want to hook into native functions, such as the accelerometer, camera, or even the Toast Messages (the little messages that pop up when something happens).

    Accessing the native hardware and software through a webview requires you to write a JavascriptAdapter (available in Android 2+), and define some custom Javascript methods in the JavascriptAdapter. Those methods map to a java function, which DOES have access to the native OS facilities.

    Frameworks such as Appcelerator and PhoneGap do exactly this, except they've already written the javascript functions for you, so it saves you from having to write those yourself.

    In that sense, if you're going to write an app for Android using HTML / CSS / Javascript, it makes sense to use a framework. Otherwise, you're doing that work yourself.

    0 讨论(0)
  • 2020-12-07 09:22

    you can make a web application and convert it in android app (apk) by using javascript, HTML5 and deploy in phonegap.

    Develop Android Apps with html5 and Javascript

    0 讨论(0)
  • 2020-12-07 09:22

    If you have a pure HTML project (with JS / CSS / Images) you can use the WebIntoApp.com in order to do that online. Also, this website will build (and sign) the APK for you (free / dedicated plans).

    https://www.webintoapp.com

    (I'm the author)

    0 讨论(0)
提交回复
热议问题