Android Clipboard Listener - How to Know when User copies a text in Android
Hey, so you want to let your app listen to Clipboard data?
Android does not support listening to Clipboard changes with Broadcast Receiver, obviously due to security reasons - evil apps can't listen when you copy sensitive info, such as password, credit card info etc without the doing the extra work of implementing it themselves.
However, there's a work-around by listening to when a new Clip Data is added to ClipBoard Manager.
In the example below, your app will be able to listen to copied texts
Android does not support listening to Clipboard changes with Broadcast Receiver, obviously due to security reasons - evil apps can't listen when you copy sensitive info, such as password, credit card info etc without the doing the extra work of implementing it themselves.
However, there's a work-around by listening to when a new Clip Data is added to ClipBoard Manager.
In the example below, your app will be able to listen to copied texts
Thank you <3
ReplyDeletewhere is the code
ReplyDelete