Making a native HTML5-powered android app with PhoneGap: Quick Guide #ampedweb

25 Sep

[Apologies – the initial post, which got auto-tweeted, said “WebOS”, not “PhoneGap”]

Download Android SDK and phonegap-android.

FROM android SDK dir:
===================

Run “android” for the GUI

Installed Packages to set up a new Operating System and then Virtual
Devices to create a new phone with one of those

“emulator @nexi” (where “nexi” is the name you gave the phone)

FROM phonegap-android dir:
========================

./droidgap $HOME/android-sdk-mac_x86/ woot com.mahemoff example/ out
## I made up “woot”, “com.mahemoff”, and “out” /// “example” is the
dir containing HTML5 assets

cp build.xml *.properties framework/build.xml out ### Yes, this step
ideally shouldn’t be here

cd out

ant

ant clean compile install

The final step will build an APK file and install it on the emulator
(using its server on a standard port).

NOTE: For some reason, I had to restart the emulator on occasion to
get the install working

[Thanks to the Palm guys for their convenient starter guide and
Jonathan Stark for the inspiration – live-building an Android app was
all the inspiration I needed.]

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: