Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- protected Dialog onCreateDialog(int id, Bundle b) {
- LayoutInflater inflater = (LayoutInflater) this.getSystemService(this.LAYOUT_INFLATER_SERVICE);
- AlertDialog.Builder builder = null;
- switch(id) {
- case DIALOG_SDCARD_WARNING:
- {
- Dialog dialog = new Dialog(this);
- builder = new AlertDialog.Builder(this);
- builder.setTitle("Export Error");
- builder.setMessage("Minutemaid cannot access the external storage (SD card).\n\nPlease unmount the SD card (Charge Only mode) or insert an SD card if there is not one present and try again.");
- builder.setPositiveButton("OK", new DialogInterface.OnClickListener() {
- public void onClick(DialogInterface dialog, int id) {
- dialog.dismiss();
- }
- });
- dialog = builder.create();
- return dialog;
- }
- default:
- {
- return null;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement