picview/src/com/google/android/apps/picview/activities/AlbumListActivity.java
private void showError(String message) {
    final Builder builder = new AlertDialog.Builder(AlbumListActivity.this);
    builder.setTitle(message);
    builder.setIcon(android.R.drawable.ic_dialog_alert);
    builder.setPositiveButton("OK", new DialogInterface.OnClickListener() {
      @Override
      public void onClick(DialogInterface dialog, int which) {
        dialog.dismiss();
      }
    });
    builder.setMessage(message);
    builder.show();

  }
/**
   * Show a visual error message to the user.
   * 
   * @param message
   *          the message to show
   */
Show a visual error message to the user.

@param message
the message to show
Show a visual error message to the user . @param message the message to show
private void showError(String message) {
    final Builder builder = new AlertDialog.Builder(AlbumListActivity.this);
    builder.setTitle(message);
    builder.setIcon(android.R.drawable.ic_dialog_alert);
    builder.setPositiveButton("OK", new DialogInterface.OnClickListener() {
      @Override
      public void onClick(DialogInterface dialog, int which) {
        dialog.dismiss();
      }
    });
    builder.setMessage(message);
    builder.show();
  }
private void showError ( String message ) { final Builder builder = new AlertDialog . Builder ( AlbumListActivity . this ) ; builder . setTitle ( message ) ; builder . setIcon ( android . R . drawable . ic_dialog_alert ) ; builder . setPositiveButton ( "OK" , new DialogInterface . OnClickListener ( ) { @ Override public void onClick ( DialogInterface dialog , int which ) { dialog . dismiss ( ) ; } } ) ; builder . setMessage ( message ) ; builder . show ( ) ; }
Show a visual error message to the user.
Show a visual error message to the user .