I want to know how I can override default text copying mechanism in Android to copy text along with meta data like URL if copying from browser, filename if copying from fine file to clipboard manager?
What would be the approach for implementing this universally on any Android device?
Updated
Use Case:
- I open chrome on Android device.
- Search something and open a website.
- I select some text and copy it.
- I open my app and paste the text.
- Along with Text I want the website URL to be saved.
I can get copied text but not sure how to get the URL without separately copying it?