Go to file
Bryce Curtis bd7ed19b52 Load multi-page apps in same webview and update pause/resume for consistency.
1. Make handling of multi-page apps consistent with iOS and Blackberry to load into same webview (instead of starting a new activity).

2. Make lifecycle consistent.  pause is called when going into background, resume is called when coming into foreground.  It is no longer called when loading or leaving an HTML page.  Use window.onload/onunload to get these notifications.
2011-10-21 16:29:55 -05:00
bin Fix so that we get the correct id when more than 9 targets 2011-09-07 16:31:29 -07:00
framework Load multi-page apps in same webview and update pause/resume for consistency. 2011-10-21 16:29:55 -05: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 updated readme 2011-09-01 14:44:02 -07:00
VERSION Updating version number to 1.1.0 2011-10-01 03:57:06 +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.

Requires

PhoneGap/Android Developer Tools

The PhoneGap developer tooling is split between general tooling and project level tooling.

Commands

./bin/create [path package activity] ... create the ./exmaple app or a phonegap/android project
./bin/bench ............................ generate a bench proj
./bin/autotest ......................... test the cli tools
./bin/test ............................. run mobile-spec

Project Commands

These commands live in a generated PhoneGap/Android project.

./phonegap/debug [path] ..................... install to first device
./phonegap/emulate .......................... start avd (emulator) named default
./phonegap/log .............................. starts logcat

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
./phonegap/debug

Start adb logcat (console.log calls output here):

./phonegap/log

Running the phonegap/mobile-spec tests:

./bin/test

Create a new PhoneGap/Android Project

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

Importing a PhoneGap/Android Project 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)

Further Reading