I want to display a toast message on Android when a sms received. I have used a toast in onReceive. The toast message displayed in one emulator but not working on the other emulator.
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?
Is there a way to get the message associated with a particular android Toast object in android?
toast=Toast.makeText(getAppContext(), message, Toast.LENGTH_LONG);
now in my test class i want to get the message from this toast object