Toast Not Displayed In Bound Service Example Using Messenger
I'm following the example on android guide for bound service using messenger and running the following code snippet. I've modified the snippet slightly to have a hi and a bye butt
Solution 1:
You are forgetting to call show()
method
Try this code snip.
Toast.makeText(getApplicationContext(), "hello!", Toast.LENGTH_SHORT).show()
Solution 2:
As far as i see you don't call the show method. Try to change the code like this:
Toast.makeText(this, "not bound yet", Toast.LENGTH_SHORT).show();
Post a Comment for "Toast Not Displayed In Bound Service Example Using Messenger"