Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert HTML5 application into standalone Android 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.

like image 955
user2388119 Avatar asked Feb 11 '26 03:02

user2388119


1 Answers

I would recommend Phonegap (http://phonegap.com). 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.com/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.

like image 147
carte Avatar answered Feb 13 '26 09:02

carte



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!