View
 

PhoneGap Eclipse PlugIn for Android

Page history last edited by Libby Baldwin 3 months ago Saved with comment

Summary

The MDS AppLaud PhoneGap Eclipse PlugIn dramatically reduces the PhoneGap configuration described in the other PhoneGap Android Eclipse tutorials.  It also provides integrated support for the jQuery Mobile and Sencha Touch UI frameworks.  

 

Download

 

 

  • If your Eclipse installation doesn't yet include a web page editor for html files. Necessary for new Classic or Java editions.
    • Install New Software -> Work with: Indigo (or Helios) ->Web, XML Java EE, and OSGi Enterprise Development -> Web Page Editor 

 

Project Creation

  • Watch a Video Tutorial (supplemental to the following instructions)
  • Click the PhoneGap icon on the main toolbar and follow the prompts

     

  • Create a Phonegap for Android Project 

 

    • Choose Use Built-in PhoneGap 
    • If you want to add in jQuery Mobile or Sencha Touch, check the corresponding box
    • Choose the PhoneGap example Project
      • Alternatively point to another directory that includes a phonegap ready index.html file
    • Click Next 
    •  
  • SDK Tools 14 and newer - Set up the Android part of the project - New Android Project
    • Assign name to project

 

  

Click Next twice (we'll come back)

Update Application Info:

  • Assign package name
  • Set minimum SDK to the minimum Android Version to support 

 

 


 

  • Click back
  • Select the latest Target as your Build Target
  • Note that PhoneGap is designed to work with recent Build Targets and support old versions with minSDK
    • Choosing a Target Name < 2.3 will require you to later remove from AndroidManifest.xml :  android:xlargeScreens="true"

 

 

 

Click finish

 

  • SDK Tools 13 and older - Set up the Android part of the project New Android Project  
    • Give the project a name
    • Do NOT change any defaults in the "Contents:" section 
    • Pick the newest available Build Target   
    • Choose Application name, package name and activity
    • Select Min SDK to correspond with the oldest Android version you want to support
      • PhoneGap 1.0 and later do not support earlier versions than Android 2.1 (Min SDK <- 7)
      • Ignore the Eclipse warning about different versions 
    •  


  • Hit Finish to complete
  • If there are any errors (red markers), do Project->Clean 

 

More Information

At http://www.mobiledevelopersolutions.com/