-3

My MainActivity extends FragmentActivity. I have a Toast.makeText in onCreate method in button's SetonClickListener. Toast is not showing up. I used getApplicationContext(), MainActivity.this,getApplication(). All fails. I tried turning on the app notifications of this particular app on my device but no success.

EDIT

I forgot To use show() method. Thanks to shobhit

lazyandroid
  • 157
  • 1
  • 10

1 Answers1

0

Probabaly you don't call the show() method.

and try to use getActivity() instead of MainActivity.this