diff --git a/README.md b/README.md index cf130e78..c358a3ec 100644 --- a/README.md +++ b/README.md @@ -16,16 +16,32 @@ Recommended Getting Started with PhoneGap/Android -------------------------------------- -1. From the root of this repo run the following command: +1. From the root of this repo run the following command to generate a new PhoneGap/Android app: ./droidgap -Params + Params: + + android_sdk_path ... The path to your Android SDK install. + name ............... The name of your application. + package_name ....... The name of your package (For example: com.nitobi.demo) + www ................ The path to your www folder. (Wherein your HTML, CSS and JS app is.) + path ............... The path to generate the application. +Thats it! -8. Now you can use the generated Android code that is located in the 'path' directory from the above step and do what you want with it: import into Eclipse to test with the simulator or otherwise. +Importing a PhoneGap/Android app into Eclipse +--------------------------------------------- -Using Eclipse with PhoneGap -------------------------------------------------------------- -The wiki article to get started with Eclipse can be found at [http://phonegap.pbworks.com/Getting-started-with-Android-PhoneGap-in-Eclipse](http://phonegap.pbworks.com/Getting-started-with-Android-PhoneGap-in-Eclipse) \ No newline at end of file +1. File > New > Project... +2. Android > Android Project +3. Create project from existing source (point to the generated app). This should import the project into Eclipse. Almost done! +4. Right click on libs/phonegap.jar and add to build path. +5. Right click on the project root: Run as > Run Configurations +6. Click on the Target tab and select Manual (this way you can choose the emulator or device to build to). + +For more info see +----------------- +http://docs.phonegap.com +http://wiki.phonegap.com \ No newline at end of file