FileDocCategorySizeDatePackage
AppErrorDialog.javaAPI DocAndroid 1.5 API3315Wed May 06 22:42:00 BST 2009com.android.server.am

AppErrorDialog

public class AppErrorDialog extends BaseErrorDialog

Fields Summary
private final AppErrorResult
mResult
private final ProcessRecord
mProc
static final int
FORCE_QUIT
static final int
DEBUG
static final long
DISMISS_TIMEOUT
private final android.os.Handler
mHandler
Constructors Summary
public AppErrorDialog(android.content.Context context, AppErrorResult result, ProcessRecord app, int flags, String shortMsg, String longMsg)

    
        
               
                
        super(context);
        
        Resources res = context.getResources();
        
        mProc = app;
        mResult = result;
        CharSequence name;
        if ((app.pkgList.size() == 1) &&
                (name=context.getPackageManager().getApplicationLabel(app.info)) != null) {
            setMessage(res.getString(
                    com.android.internal.R.string.aerr_application,
                    name.toString(), app.info.processName));
        } else {
            name = app.processName;
            setMessage(res.getString(
                    com.android.internal.R.string.aerr_process,
                    name.toString()));
        }

        setCancelable(false);

        setButton(res.getText(com.android.internal.R.string.force_close),
                    mHandler.obtainMessage(FORCE_QUIT));
        if ((flags&1) != 0) {
            setButton(res.getText(com.android.internal.R.string.debug),
                    mHandler.obtainMessage(DEBUG));
        }
        setTitle(res.getText(com.android.internal.R.string.aerr_title));
        getWindow().addFlags(FLAG_SYSTEM_ERROR);
        getWindow().setTitle("Application Error: " + app.info.processName);

        // After the timeout, pretend the user clicked the quit button
        mHandler.sendMessageDelayed(
                mHandler.obtainMessage(FORCE_QUIT),
                DISMISS_TIMEOUT);
    
Methods Summary
public voidonStop()