Advertisement
moonlightcheese

Untitled

Jun 22nd, 2011
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. @Override
  2. protected Dialog onCreateDialog(int id, Bundle b) {
  3. LayoutInflater inflater = (LayoutInflater) this.getSystemService(this.LAYOUT_INFLATER_SERVICE);
  4. AlertDialog.Builder builder = null;
  5. switch(id) {
  6. case DIALOG_SDCARD_WARNING:
  7. {
  8. Dialog dialog = new Dialog(this);
  9. builder = new AlertDialog.Builder(this);
  10. builder.setTitle("Export Error");
  11. 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.");
  12. builder.setPositiveButton("OK", new DialogInterface.OnClickListener() {
  13. public void onClick(DialogInterface dialog, int id) {
  14. dialog.dismiss();
  15. }
  16. });
  17. dialog = builder.create();
  18. return dialog;
  19. }
  20. default:
  21. {
  22. return null;
  23. }
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement