2

我正在尝试从 Android 中的服务打开一个对话框:

MeasurementsStarter.measurementsstarter.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();
}

但是当我应该打开它时。它被调用,但除了这个(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

我希望有人可以帮助我,谢谢

4

0 回答 0