Android toast.makeText context error?

If this LocationListener declaration is inside an activity class (say: MyActivity ), you should create the Toast as: Toast. MakeText(MyActivity. This, s, Toast.

LENGTH_SHORT).show().

If this LocationListener declaration is inside an activity class (say: MyActivity), you should create the Toast as: Toast. MakeText(MyActivity. This, s, Toast.

LENGTH_SHORT).show().

Make sure that you use the context of the Activity class. If you are using this toast in an Activity, write, Classname. This in place of context.

I am having trouble calling toast. Maketext inside of a location listener. The context is not available, what am I doing wrong?

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions