通过在Android中通知栏复制粘贴 [英] Copy paste via notification bar in Android

查看:333
本文介绍了通过在Android中通知栏复制粘贴的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您见过这些密码管理器,如LastPass的?
它们允许你通过在Android中通知栏复制粘贴。
通常情况下,顺序是这样的..

Have you seen these password managers like Lastpass ? They allow you to copy-paste via Notification bar in Android. Typically, the sequence is like this..


  1. 用户在LastPass的presses的按钮时,放入通知栏两则通知。

  2. 用户切换到其他应用程序说浏览器,当他插入用户名和密码

  3. 他打开通知栏,从LastPass的贴牌用户名或密码进入浏览器的文本字段中选择通知。

任何人都可以打破这种分解成步骤,指导我怎样才能实现这种结构的...

Can anyone break this down into steps and guide me how I can implement this kind of a structure...

感谢

推荐答案

步骤1:提出一个通知,以 getBroadcast() 的PendingIntent 指向广播接收器。

Step #1: Raise a Notification, with a getBroadcast() PendingIntent pointing to a BroadcastReceiver of yours.

第二步:在广播接收器,使用数据复制到剪贴板 ClipboardManager

Step #2: In that BroadcastReceiver, copy the data to the clipboard using ClipboardManager.

这篇关于通过在Android中通知栏复制粘贴的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆