Call the OpenGL ES API without the current context (registered once per thread). Cordova

I am working on phone recording, jquerymobile HTML5.

I am getting the following error: "Call the OpenGL ES API without the current context (logged once per thread)" I found solutions to similar problems, but nothing worked for me.

I don't understand why this error occurs, but as I noticed this error occurs when I call a new page in html. My html code is similar to the code in this example: http://www.w3schools.com/jquerymobile/tryit.asp?filename=tryjqmob_pages

I am using eclipse along with the Android SDK emulator.

The My Activity class is listed in the Phonegap Android starter guides. 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);
}
}

      

+3


source to share


1 answer


You can write like this:



<application android:hardwareAccelerated="true" ...>

      

0


source







All Articles