picview/src/com/google/android/apps/picview/activities/AccountsActivity.java
private void showAddAccountDialog() {
    AddEditAccountFragment.Callback callback = new AddEditAccountFragment.Callback() {
      @Override
      public void onAddAccount(int type, String id, String name) {
        accountsDb.put(-1, type, id, name);
        adapter.notifyDataSetChanged();
      }
    };
    AddEditAccountFragment dialog = new AddEditAccountFragment(callback);
    dialog.show(getFragmentManager(), "accountAddDialog");
  }
/**
   * Shows the dialog for adding a new account.
   */
Shows the dialog for adding a new account.
Shows the dialog for adding a new account .
private void showAddAccountDialog() {
    AddEditAccountFragment.Callback callback = new AddEditAccountFragment.Callback() {
      @Override
      public void onAddAccount(int type, String id, String name) {
        accountsDb.put(-1, type, id, name);
        adapter.notifyDataSetChanged();
      }
    };
    AddEditAccountFragment dialog = new AddEditAccountFragment(callback);
    dialog.show(getFragmentManager(), "accountAddDialog");
  }
private void showAddAccountDialog ( ) { AddEditAccountFragment . Callback callback = new AddEditAccountFragment . Callback ( ) { @ Override public void onAddAccount ( int type , String id , String name ) { accountsDb . put ( - 1 , type , id , name ) ; adapter . notifyDataSetChanged ( ) ; } } ; AddEditAccountFragment dialog = new AddEditAccountFragment ( callback ) ; dialog . show ( getFragmentManager ( ) , "accountAddDialog" ) ; }
Shows the dialog for adding a new account.
Shows the dialog for adding a new account .