Go to file
2010-02-13 18:58:45 -08:00
example cleanup continued 2010-01-26 16:24:35 -08:00
framework Fixed small contacts and accelerometer object instantiation bugs. Added a bit more delay to PhoneGap constructor, 1ms caused issues sometimes I *think*. 2010-02-13 18:58:45 -08:00
.gitignore reorg of project assets 2010-01-26 13:54:02 -08:00
droidgap Fixed building of phonegap.js in build script. Fixed GPS on Android 2.0+ - I guess they updated the version of WebKit being used on Android (similar now to how it works on iPhone) and thus the browser has a native navigator.geolocation object. Employed Jesses approach to proxying an objects method since we can`t directly overwrite it. 2010-02-13 17:09:02 -08:00
README.md being picky about md formatting 2010-01-27 15:14:49 -08: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

http://docs.phonegap.com http://wiki.phonegap.com