Hi! I'm developing an Android app ( i am a beginner)

I want to detect when a user copies a link while using another app, even when my app is running in the background, and then display a floating popup offering certain option like download if link is a video

On Android 10+, clipboard access is restricted for background apps. Does Android 15 allow this through a foreground service, or is there another reliable approach?

Any advice or examples would be appreciated. Thanks!

submitted by /u/Tk13_
[link] [comments]