This is the way I have to show the Toast for 500 milliseconds. Though, it's showing more than a second.
Toast.makeText(LiveChat.this, "Typing", 500).show();
How can I show Toast only for 500 milliseconds?
UPDATE: I don't agree that this is a duplicate - because I am seeking for a way to exit the main app and still show a Toast from the service.
In a very simple test app I have 2 buttons:
Clicking …
I am printing Toast message in my application to show notification but i want to know value of
Toast.LENGTH_LONG and Toast.LENGTH_SHORT.
What other values i can use.
Can anyone tell me what is the value of …