Android SDK and PhoneGap
Android SDK and PhoneGap
Table of Contents
The Android SDK Installation
of Android SDK
Android ADT
Installation
of PhoneGap
Key applications
The Android SDK provides
Installing Eclipse IDE Install Android SDK Install the ADT plugin for eclipse Add components needed for development
Eclipse
What is Eclipse?
http://bit.ly/EclipseClassic
Android SDK
For the Android SDK to be installed
of
the SDK
The installer cannot locate the jdk
Just click the "Back" button and then "Next"
It should work
of Android SDK
fetching of packages
This may take a while Took me two / thirds of a day for all packages
Start Eclipse, then select Help > Install New Software -> Add, in the top-right corner In the Add Repository
Enter "ADT Plugin" for the Name
Copy for location https://dlssl.google.com/android/eclipse/
Select the checkbox next to Developer Tools and click Next In the next window, you'll see a list of the tools to be downloaded
Click Next
device
PhoneGap Project
download to /res
Set the build path of the phonegap.jar
Java file
Change the class's extend from Activity to DroidGap
You can see how the final AndroidManifest.xml file should look like
http://phonegap.com/assets/guide/manifest.jpg
it?
Open Eclipse
Go to Help -> Install New Software -> Click Add
Like with the ADT plugin
and ready to go
A PhoneGap icon should be displayed in the toolbar After than the creation of new project is straight-forward
With AppLaud plugin you can select to include
jQuery or Sencha
application
Till now we have an empty PhoneGap project All we need to do is to edit the index.html file
Created by us
Located in /assets/www This is the Entry point of our Application
Hello World, PhoneGap! Open the index.html and copy the following
<!Doctype html> <html> <head> <title> First PhoneGap Application </title> <head> <body> <h1>Hello PhoneGap</h1> </body> </html>
Questions?