God, this gives me headaches. I checked everything according this post DroidGap cannot be resolved into a type and it still doesn’t work.
Here’s my code:
import org.apache.cordova.*;
import android.app.DroidGap;
import android.os.Bundle;
import android.view.Menu;
public class SpotableActivity extends DroidGap {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
super.loadUrl("file:///android_asset/www/index.html");
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.activity_spotable, menu);
return true;
}
}
And I’ve got cordova jar in my build path.
I followed all the steps from docs over here: http://docs.phonegap.com/en/1.9.0/guide_getting-started_android_index.md.html#Getting%20Started%20with%20Android
The steps in the page you cite do not have
android.app.DroidGap, because there is no such class AFAIK.DroidGap, according to that page, is inorg.apache.cordova.So, delete the
DroidGapimportstatement, and you should have better luck.