mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-22 00:32:55 +08:00
updated readme to reflect change to build process
This commit is contained in:
parent
bb7b973bf0
commit
c3cd44c04c
28
README.md
28
README.md
@ -16,16 +16,32 @@ Recommended
|
|||||||
Getting Started with PhoneGap/Android
|
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 <android_sdk_path> <name> <package_name> <www> <path>
|
./droidgap <android_sdk_path> <name> <package_name> <www> <path>
|
||||||
|
|
||||||
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
|
1. File > New > Project...
|
||||||
-------------------------------------------------------------
|
2. Android > Android Project
|
||||||
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)
|
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
|
Loading…
Reference in New Issue
Block a user