Exception Handler pro renderovací vlákno.
More...
Exception Handler pro renderovací vlákno.
Definition at line 132 of file AppMainActivity.java.
void mhr.app.AppMainActivity.RendererEH.uncaughtException |
( |
Thread |
thread, |
|
|
Throwable |
ex |
|
) |
| |
|
inline |
Definition at line 135 of file AppMainActivity.java.
{
final Throwable threx = ex;
runOnUiThread(new Runnable() {
@Override
public void run() {
AlertDialog.Builder b = new AlertDialog.Builder(AppMainActivity.this);
final Throwable thr = threx;
b.setTitle("Renderer unhandled exception!");
b.setMessage(threx.getMessage());
b.setPositiveButton("Ok", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface
dialog,
int which) {
thr.printStackTrace();
finish();
}
});
b.create().show();
}
});
}
The documentation for this class was generated from the following file: