2

I am trying to open a dialog from a Service in Android:

MeasurementsStarter.measurementsstarter.createConsciousnessDialog();

createConsciousnessDialog:

public void createConsciousnessDialog() {
    consciousnessDialog = new AlertDialog.Builder(this)
            .setTitle("Bent u bij bewustzijn?")
            .setMessage(
                    "U heeft al 30 seconden niet bewogen, bent u nog bij bewustzijn")
            .setPositiveButton("Ja", new DialogInterface.OnClickListener() {
                public void onClick(DialogInterface dialog, int which) {
                    MeasuringService.measuringservice.resetSensorBooleans();
                }
            }).show();
}

but when I it should open. it gets called, but nothing happens except for this(LogCat):

Failure getting entry for 0x010802c9 (t=7 e=713) in package 0 (error -75)
Attempting to initialize hardware acceleration outside of the main thread, aborting

I hope someone can help me out, thanks

Black Magic
  • 2,582
  • 5
  • 31
  • 57

0 Answers0