Skip to content

itanger/phonegap-android

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Recommended

  • 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

About

Android OS implementation of the PhoneGap API

Resources

Stars

Watchers

Forks

Packages

No packages published