App

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | List of all members
mhr.app.AppMainActivity.RendererEH Class Reference

Exception Handler pro renderovací vlákno. More...

Inheritance diagram for mhr.app.AppMainActivity.RendererEH:

## Public Member Functions
void | uncaughtException (Thread thread, Throwable ex)

## Detailed Description

Exception Handler pro renderovací vlákno.

Definition at line 132 of file AppMainActivity.java.

## Member Function Documentation

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!");
// StringWriter sw = new StringWriter();
// PrintWriter pw = new PrintWriter(sw);
// thr.printStackTrace(pw);
// b.setMessage(threx.toString() + "\n\n" + sw.toString());
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:

- /home/xxx/eclipse_workspaces/app/app/src/mhr/app/AppMainActivity.java