Android Question copy text(msg) from whatsapp app to my_app

GudEvil

Member
Licensed User
Longtime User
I am in need of scenario as

copy whatsapp/vibe/third-party app text msg to my_app.

Say user sent me bank account no/address/name/any detail, I got to save/copy this info to my app.

any idea how it can be designed or any library.

I know intent does that but we cant modify third-party app to do this...

My thoughts (still looking for more info)
1) once text is copied, can we use floating wizard to add copied text to my-app
2) once text is copied in android, event is generated in notification drawer n we copy from a there
(something similar to music player notification drawer idea)
3)manually copy n open my-app n paste is workable, but doesnt look ideal...can be better.

Any ref/idea/suggestion welcome..

-m
 

Ohanian

Active Member
Licensed User
Longtime User
Hi,

Just set a clipboard Listener and do whatever you want to do with the copied text.

Sample Code is HERE
 
Upvote 0
Top