-1

I am a newbie in android and I am trying to create a toast notification using this code

Toast.makeText(context, text, duration).Show(true); Pls what did I get wrong

special
  • 63
  • 1
  • 7

2 Answers2

0

Try this code Toast.makeText(context, text, duration).show();

Please note the caps in show method. And it doesn't require a true parameter.

Michael Okoli
  • 4,887
  • 2
  • 16
  • 20
  • non-sense, why is this question asked please remove it...and u Mr@Micheal Peter u shouldn't answer... – DJphy May 30 '15 at 14:25
  • 4
    The fellow who is asking has not done any kind of research and simply coming and asking a question here..This is not a site to play and give reputations for ur friends... – DJphy May 30 '15 at 14:31
0

What context do you use? Also do you get any error?

Toast.makeText(context, text, duration).show();

Is the general syntax, how do you use it?

Eladit
  • 168
  • 1
  • 2
  • 9