Go to file
2011-09-01 13:12:09 -07:00
bin slightly more coherent organization of concerns 2011-09-01 13:12:09 -07:00
framework Moved around the scripts so that you can create a self contained project that you can run debug, emulate and log from 2011-08-26 10:54:37 -07:00
.gitignore Moved default plugins.xml, www, and manifest.xml into a folder structure that can be straight copied over a new android project. change the bash script to update the target of the phonegap framework dir before building 2011-08-20 13:27:53 -07:00
LICENSE Update license and copyright notices in each source file. PhoneGap is licensed under modified BSD and MIT (2008). 2010-10-18 15:31:16 -05:00
README.md test fully automated from mobile-spec edge 2011-08-18 22:40:09 -07:00
VERSION Upping version to 1.0.0 2011-07-29 12:01:46 +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

PhoneGap/Android Developer Tools

Tools for developers building mobile apps using PhoneGap for Android.

Commands

./bin/create [path package activity] ... create a phonegap/android project
./bin/debug ............................ install to first device
./bin/emulate .......................... start emulator named default
./bin/log .............................. starts logging to stdout
./bin/test ............................. run mobile-spec

Running the Example Project

# start avd (emulator) named 'default'
./bin/emulate

# create the exmaple project and build it to the first device
./bin/create && cd example && ./../bin/debug

# start logging to stdout
./bin/log

Running Mobile-Spec

./bin/test

Create a new PhoneGap/Android Project

./bin/create ~/Desktop/myapp com.phonegap.special MyApp

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 found in tmp/android)
  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)

Common Commandline Tools

List devices attached

adb devices 

Install APK onto device

apk -s 0123456789012 install phonegap.apk

Logging

Via console.log calls from your apps javascript.

adb logcat

Debugging

Attach it to a process on the device

adb jdwp

For more info see