Android Question copy to clipboard?

Ohanian

Active Member
Licensed User
Longtime User
as far as i remember no.
i don't have access to my code, i'll check it tomorrow if you face any problem.
 
Upvote 0

ilan

Expert
Licensed User
Longtime User
just tried it, it works but as long the service is running. and i would like to avoid running a forground service
so i need to add an intent filter to the manifest that will start this service when someone copy something to the clipboard

something like this

B4X:
AddReceiverText(clipboard,
<intent-filter>
    <action android:name="android.intent.action.onPrimaryClipChanged" />
</intent-filter>)

i just dont know the right intent action :(:(

(ps clipboard is the service)
 
Upvote 0

ilan

Expert
Licensed User
Longtime User
Upvote 0
Top