Home Package Class Method

Examples of Dialog


Examples of android.app.Dialog

            public void onClick(final DialogInterface dialog, final int id) {
                dialog.dismiss();
            }
        });
       
        Dialog d = builder.create();
        d.setOnDismissListener(new Dialog.OnDismissListener() {
            @Override
            public void onDismiss(final DialogInterface dialog) {
                if(callback != null) callback.onFilterSet();
            }
        });
View Full Code Here

Examples of android.app.Dialog

      finish();
    }
   
    @Override
    protected Dialog onCreateDialog(int id) {
      Dialog superDlg = super.onCreateDialog(id);
      if (superDlg!=null) {
        return superDlg;
      }
     
        switch (id) {
View Full Code Here

Examples of android.app.Dialog

  public boolean createNewDirectory( String path, final DirectoryAdapter adapter )
  {
    gPath  = path;
    Log.d( "FileManager", "Creating new directory in.... " + path );
    gDialog = new Dialog( gCtx );
    gDialog.setContentView( R.layout.textdialog );
    gDialog.setTitle( "Create new directory:" );
    final Button gCreateButton = ( Button )gDialog.findViewById( R.id.gCreateButton );
    gCreateButton.setOnClickListener( new Button.OnClickListener() 
    {
View Full Code Here

Examples of android.app.Dialog

 
  public boolean createNewFile( String path, final DirectoryAdapter adapter )
  {
    gPath  = path;
    Log.d( "FileManager", "Creating new file in.... " + path );
    gDialog = new Dialog( gCtx );
    gDialog.setContentView( R.layout.textdialog );
    gDialog.setTitle( "Create new file:" );
    final Button gCreateButton = ( Button )gDialog.findViewById( R.id.gCreateButton );
    gCreateButton.setOnClickListener( new Button.OnClickListener() 
    {
View Full Code Here

Examples of android.app.Dialog

                //Reinitialize onHere to False. Incase we have called this function more than once
                //For example by first calling the "Set Current Frontend" menu item and selecting here
                //and then by long-pressing on Watch-TV
                onHere=false;

                final Dialog d = createFrontendDialog();
                d.setOnDismissListener(dismissListener);
                d.setOnCancelListener(cancelListener);
                return d;

            case DIALOG_LOAD:
                final ProgressDialog prog = new ProgressDialog(this);
                prog.setIndeterminate(true);
View Full Code Here

Examples of android.app.Dialog

                //Reinitialize onHere to False. Incase we have called this function more than once
                //For example by first calling the "Set Current Frontend" menu item and selecting here
                //and then by long-pressing on Watch-TV
                onHere=false;

                final Dialog d = createFrontendDialog();
                d.setOnDismissListener(dismissListener);
                d.setOnCancelListener(cancelListener);
                return d;

            case DIALOG_LOAD:
                final ProgressDialog prog = new ProgressDialog(this);
                prog.setIndeterminate(true);
View Full Code Here

Examples of android.app.Dialog

  private void showError(final String message, final boolean finish) {
    final Activity activity = this;

    activity.runOnUiThread(new Runnable() {
      public void run() {
        Dialog dialog = (new AlertDialog.Builder(activity).setTitle(
            "Error").setMessage(message).setNeutralButton("Ok",
            new DialogInterface.OnClickListener() {

              public void onClick(DialogInterface dialog,
                  int which) {
                if (finish) {
                  activity.finish();
                }
              }
            })).create();
        dialog.show();
      }
    });
  }
View Full Code Here

Examples of android.app.Dialog

                               .setNegativeButton(R.string.cancel, this)
                               .create();
                break;

            case DEFAULT_DIALOG:
                final Dialog d = createFrontendDialog();
                return d;
        }

        return feEditor;
    }
View Full Code Here

Examples of android.app.Dialog

                d.setMessage(getResources().getString(R.string.loading));
                return d;

            case DIALOG_NUMPAD:

                final Dialog pad = new Dialog(this);
                pad.setContentView(R.layout.numpad);
                pad.findViewById(android.R.id.title).setVisibility(View.GONE);

                View button;
                for (int viewId : nums.keySet()) {
                    button = pad.findViewById(viewId);
                    button.setTag(nums.get(viewId));
                    button.setOnClickListener(this);
                }
                return pad;
View Full Code Here

Examples of android.app.Dialog

                //Reinitialize onHere to False. Incase we have called this function more than once
                //For example by first calling the "Set Current Frontend" menu item and selecting here
                //and then by long-pressing on Watch-TV
                onHere=false;

                final Dialog d = createFrontendDialog();
                d.setOnDismissListener(dismissListener);
                d.setOnCancelListener(cancelListener);
                return d;

            case DIALOG_LOAD:
                final ProgressDialog prog = new ProgressDialog(this);
                prog.setIndeterminate(true);
View Full Code Here
TOP
Copyright © 2015 www.androidadb.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.