Performing Additional Steps for Android 2.2 OS

If you upgrade to the new version of PhoneGap and you are using the Android 2.2 operating system, there are some additional steps to perform if you want the Hybrid Web Container to be compatible with Android 2.2.

You must modify the PhoneGap Cordova framework to eliminate all references to features that are not included in Android 2.2.

  1. Import the PhoneGap Cordova framework into Eclipse.
  2. Right-click the Cordova project and choose Properties.
  3. In the left pane of the Properties window, choose Android.
  4. Select Android 2.2 as the Project Build Target and click OK.
    The Cordova project now shows some errors because the code is trying to read and write attributes of a file, but these attributes do not exist in Android 2.2.
  5. Open the ExifHelper.java file for editing (all errors occur in this file).
  6. Comment out each line that has an error and save the file.
    Any functions that depend on these attributes subsequently do not work