In my code there is following code…
if (true) {
Toast.makeText(context, "ABC", Toast.LENGTH_SHORT);
}
else {
Toast.makeText(context, "ABC", Toast.LENGTH_SHORT);
}
When I run the application nothing is displayed…
But when I remove the above part & replace it with
Toast.makeText(context, "ABC", Toast.LENGTH_SHORT);
it works…
I doubt any of your samples work, because you need to
showthe toast: