I am working on a phonegap, jquerymobile HTML5 app.
I am getting the following error: "Call to OpenGL ES API with no current context (logged once per thread)" I found solutions on similar problems but nothing worked for me.
I don't understand why this error occure, but as I observed this error occur when I call a new page on html. My html code it is similar with the code in this example: http://www.w3schools.com/jquerymobile/tryit.asp?filename=tryjqmob_pages
I am using eclipse along with Android SDK Emulator.
My Activity class is mentioned in start guides of Phonegap Android. This is my Activity class:
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import org.apache.cordova.*;
public class MainActivity extends DroidGap {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
super.setIntegerProperty("loadUrlTimeoutValue", 60000);
super.loadUrl("file:///android_asset/www/index.html");
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
}
}