Removing PhoneGap from the Android Hybrid Web Container
Remove
all references to the PhoneGap library that is linked to the
Android
Hybrid Web Container.
Leaving
PhoneGap in place does not cause any issues, but does increase overall application size
by about 70KB.
Open the UiHybridAppContainer.java file for editing and
comment out this line:
//import org.apache.cordova.*;
Change the superclass of UiWorkflowContainer from
Droidgap to Activity:
public class UiWorkflowContainer extends Activity {
Around line
91,
change the USE_PHONEGAP variable to false, so the
line of code looks like this:
private static final boolean USE_PHONEGAP = false;
At this point, there are 5 errors, which are caused by calling methods that were
inherited from the Droidgap class (but do not exist in the
Activity class); comment out the 5 lines that cause these
errors :
To
find
these lines, search for "USE_PHONEGAP."
These lines are all contained in "if ( USE_PHONEGAP )"
statements.