0

I have added a OnPrimaryClipChangedListener() in my service, which detects when user copies any text, and displays some output as Toast.

However in some apps (e.g. Gmail) when user copies the test, a Toast with message "Text copied to clipboard" is displayed which overrides Toast displayed by my message.

How can I suppress the other Toast message?

Thanks

Abhi
  • 3
  • 3

1 Answers1

0

You, as a developer, have no means of affecting the toasts displayed by another app.

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491