Package android.text

Examples of android.text.ClipboardManager


        break;
      }
      case R.id.list_copy_password_to_clipboard:
      case R.id.list_copy_username_to_clipboard: {
        Secret secret = secretsList.getSecret(cmenuPosition);
        ClipboardManager cm = (ClipboardManager) getSystemService(
            CLIPBOARD_SERVICE);
        int typeId;
        if (item.getItemId() == R.id.list_copy_password_to_clipboard) {
          cm.setText(secret.getPassword(false));
          typeId = R.string.password_copied_to_clipboard;
        } else {
          cm.setText(secret.getUsername());
          typeId = R.string.username_copied_to_clipboard;
        }
        String template = getText(R.string.copied_to_clipboard).toString();
        String typeOfCopy = getText(typeId).toString();
        String msg = MessageFormat.format(template, secret.getDescription(),
View Full Code Here

TOP

Related Classes of android.text.ClipboardManager

Copyright © 2018 www.massapicom. 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.