I've a static website which purely uses only HTML5 and JS. And I have setup the phonegap in my windows 7 PC as well. My Question is what are the steps that I've to follow in order to create an android APK file out of the existing HTML/JS files. There are lot of tutorials on creating new phonegap project from the scratch. But I couldn't find any help on importing existing static website to phonegap project (please note that https://build.phonegap.com/apps is not an option for me.)
"And I have setup the phonegap in my windows 7 PC as well."
I'm assuming your CLI is ready for cordova development. Then it's enough to follow this tutorial/documenation.
Go to your desired directory where you want to build your project. e.g.
d:
cd d:\myworks
Then create a cordova project
cordova create hello com.example.hello HelloWorld
go inside the project directory
cd hello
And platform android
cordova platform add android
There will be a www
folder inside yourProject hello->www
Delete all css js html folders inside that directory and put your static pages there.
connect your device to PC and run cordova run android
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With