Reputation: 938
Im looking to create an application written in HTML/JS and wrapped within a Android App. The reason for this is that I need to access the device's components (such as the microphone and storage) but because of time restraints I do not have time to full learn Android development. I am fluent in HTML/JS so it would not take me very long to write the core of the application in these languages. My thought was to write the application in HTML/JS and use a webview within the Android app, then record sounds from the microphone using Java and send them to the HMTL/JS webview.
Can anyone tell me if this is possible and if so point me in the right direction of where to start. If not is there another way that I can do this?
Upvotes: 1
Views: 96
Reputation: 16
You can do so by using the Droidscript application, it is just Android studio's minimised version (initially) for androids itself, allows direct publishing of html, css and js (browser-js, nodejs), and even python
DroidScript is an easy to use, portable coding tool which simplifies android app development. It dramatically improves productivity by speeding up development by as much as 10x compared with using the standard development tools. (FROM THEIR SITE)
Yes, you can create an android application using only HTML and JS as the core language and access the device components as well!
You can search for Droidscript application on Play store in case you wish to develop the app from android only (DroidScript: JS and Python IDE) or use their VS code extension.
Site: https://droidscript.org, Sample apps: https://ds.justplayer.de, Docs: https://droidscript.github.io/Docs
Upvotes: 0
Reputation: 23655
Have a look at PhoneGap, they provide exactly what you want to create yourself.
Or one of a list of similar solutions.
Upvotes: 2