private void showErrorMessage(int message) { AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setMessage(message); builder.setPositiveButton(R.string.button_ok, new FinishListener(this)); builder.setOnCancelListener(new FinishListener(this)); builder.show(); }
private void showErrorMessage(int message) { AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setMessage(message); builder.setPositiveButton(fakeR.getId("string", "button_ok"), new FinishListener(this)); builder.setOnCancelListener(new FinishListener(this)); builder.show(); }
private void displayFrameworkBugMessageAndExit() { AlertDialog.Builder builder = new AlertDialog.Builder( this.getActivity()); builder.setTitle(getString(R.string.app_name)); builder.setMessage("Sorry, the Android camera encountered a problem. You may need to restart the device."); builder.setPositiveButton("OK", new FinishListener(this.getActivity())); builder.setOnCancelListener(new FinishListener(this.getActivity())); builder.show(); }