Go to file
2010-08-23 16:58:21 -07:00
assets/www Changing the simple example 2010-02-05 16:08:24 -08:00
example fixed up things so that deviceready now uses DOMContentLoaded and if DCL fires before something is attached to deviceready the function will be called immediately 2010-08-23 16:58:21 -07:00
framework fixed up things so that deviceready now uses DOMContentLoaded and if DCL fires before something is attached to deviceready the function will be called immediately 2010-08-23 16:58:21 -07:00
.gitignore reorg of project assets 2010-01-26 13:54:02 -08:00
droidgap undoing a test change to droidgap 2010-08-23 16:58:21 -07:00
LICENSE Adding LICENSE file 2010-03-17 15:19:59 -07:00
README.md undoing those changes for target on joes' recommendation 2010-07-15 16:59:11 -07:00

PhoneGap/Android

PhoneGap/Android is an Android application library that allows for PhoneGap based projects to be built for the Android Platform. PhoneGap based applications are, at the core, an application written with web technology: HTML, CSS and JavaScript.

Pre-requisites

  • Eclipse (Great for debugging and extending PhoneGap/Android with your own Java plugins.)

Getting Started with PhoneGap/Android

  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]

    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!

Importing a PhoneGap/Android app into Eclipse

  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