FileDocCategorySizeDatePackage
AppWaitingForDebuggerDialog.javaAPI DocAndroid 5.1 API2531Thu Mar 12 22:22:42 GMT 2015com.android.server.am

AppWaitingForDebuggerDialog

public final class AppWaitingForDebuggerDialog extends BaseErrorDialog

Fields Summary
final ActivityManagerService
mService
final ProcessRecord
mProc
private CharSequence
mAppName
private final android.os.Handler
mHandler
Constructors Summary
public AppWaitingForDebuggerDialog(ActivityManagerService service, android.content.Context context, ProcessRecord app)

        super(context);
        mService = service;
        mProc = app;
        mAppName = context.getPackageManager().getApplicationLabel(app.info);

        setCancelable(false);

        StringBuilder text = new StringBuilder();
        if (mAppName != null && mAppName.length() > 0) {
            text.append("Application ");
            text.append(mAppName);
            text.append(" (process ");
            text.append(app.processName);
            text.append(")");
        } else {
            text.append("Process ");
            text.append(app.processName);
        }

        text.append(" is waiting for the debugger to attach.");

        setMessage(text.toString());
        setButton(DialogInterface.BUTTON_POSITIVE, "Force Close", mHandler.obtainMessage(1, app));
        setTitle("Waiting For Debugger");
        WindowManager.LayoutParams attrs = getWindow().getAttributes();
        attrs.setTitle("Waiting For Debugger: " + app.info.processName);
        getWindow().setAttributes(attrs);
    
Methods Summary
public voidonStop()