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);