- Install PhoneGap. You need NodeJs package manager installed.
npm install -g cordova
- Create a project named "HelloWorld" inside "phonegap-example" directory. Use "com.example.hello" root package.
phonegap create phonegap-example --id com.example.hello --name HelloWorld
- Add android support
cd phonegap-example
cordova platform add android
- Build the project
cordova build
- Run the project. You need Android Development SDK installed.
cd ./platform/android/cordova ./run
In case, you don't have an android emulator defined in your development environment, you may get following error:ERROR : No emulator images (avds) found, if you would like to create an avd follow the instructions provided here:http://developer.android.com/tools/devices/index.htmlOr run 'android create avd --name <name> --target <targetID>' in on the command line.
24 Kasım 2013 Pazar
How to Create&Develop a Phonegap HelloWorld Project
Kaydol:
Kayıt Yorumları (Atom)
Hiç yorum yok:
Yorum Gönder