Android Toast message doesn't show -
i know there other issues regard problem, however, mine surprisingly different (at least think so).
i guess code right don't have idea why toast message doesn't display. firstly, couldn't see toast message in fragments. decided put in activity , amazingly doesn't display here too.
this code of activity has been extended fragmentactivity.
@override     protected void oncreate(bundle savedinstancestate)     {         super.oncreate(savedinstancestate);          log.d(tag, "***************************");         log.d(tag, "*** application started ***");         log.d(tag, "***************************");          // assign layout activity         setcontentview(r.layout.activity_main);          mcontext = mainactivity.this;         toast.maketext(mcontext, "hello world", toast.length_short).show();  . . . }  application works fine without error , f.toast message doesn't display! replaced mcontext getapplicationcontext() , had same result, toast not display.
any suggestion appreciated. thanks
===============
update: when open toast class there red lines. please @ image below

perhaps have accidentially disabled notifications app in settings? causes no toasts too.
Comments
Post a Comment