admin管理员组文章数量:1425777
I have a dynamic HTML document that contains external resources (images, css and scripts are coded inside of document). This HTML5 application is working fine within an internet browser. Is it possible to convert this HTML5 application into a standalone Android application?
Please give me step by step instructions this is my first HTML app.
I have a dynamic HTML document that contains external resources (images, css and scripts are coded inside of document). This HTML5 application is working fine within an internet browser. Is it possible to convert this HTML5 application into a standalone Android application?
Please give me step by step instructions this is my first HTML app.
Share Improve this question edited Jan 27, 2016 at 23:53 gariepy 3,6846 gold badges23 silver badges34 bronze badges asked Feb 5, 2014 at 3:12 user2388119user2388119 311 silver badge2 bronze badges3 Answers
Reset to default 2I would remend Phonegap (http://phonegap.). You simply upload your web app to their service, and you can download the Android APK.
Now, although you can simply do the above and end there, Phonegap has unique sets of APIs that will allow you do a lot of native mobile functions that a typical web app does not have access to. This includes Geolocation, Accelerometer Camera, Contacts, Database, File system, and more, all through Javascript.
Few things to keep in mind while creating a HTML app for the first time:
Make sure your website is responsive. This way, any mobile device can view the page and users wont have to zoom in to an app created for the desktop.
Clicking tends to be laggy due to the 300ms delay on a mobile browser, so use fastclick.js (https://github./ftlabs/fastclick) to remove that and make your app quicker.
In addition, if you want to create an iOS or Windows phone app along with your Android App, Ph has the option to that too.
You could use phonegap to convert your HTML5 application to a native android application http://phonegap./
You can try to develop a Google Chrome Packaged app. The new API will allow developers to create apps that run as a Chrome app, but also as a "native" app in both Android & iOS platforms.
Google provides an excellent documentation and tutorials. You can find more information here: http://developer.chrome./apps/about_apps.html
本文标签: javascriptConvert HTML5 application into standalone Android AppStack Overflow
版权声明:本文标题:javascript - Convert HTML5 application into standalone Android App - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745453359a2658987.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论