cordova - phonegap: MainActivity.java - changing extends to "Droidgap" causes errors -
i'm trying set phonegap 3 days now. docs me "phonegap add android" part returns error tried tutorial adobe http://www.adobe.com/devnet/html5/articles/getting-started-with-phonegap-in-eclipse-for-android.html
this part:
change base class activity droidgap ; in class definition following word extends :
public class mainactivity extends droidgap {
will cause 2 errors. 1 resolved changing protected
public
on function.
the error can't resolve one:
"the method getsupportfragmentmanager undefined mainactivity".
the whole process of setting phonegap frustrating, very, appreciated.
"the method getsupportfragmentmanager undefined mainactivity".
getsupportfragmentmanager() public method in fragmentactivity class. mainactivity have extend fragmentactivity in order work. shouldn't necessary have code if trying follow "getting started phonegap in eclipse android" tutorial.
when create android project, double-check have chosen create blank activity , navigation type activity none (see pictures).
see also:
android api: http://developer.android.com/reference/android/support/v4/app/fragmentactivity.html
related question: method getsupportfragmentmanager() undefined
Comments
Post a Comment