android - Activity lifecycle issue -


after executing following code when kill application, both toasts appear on screen.now problem facing when comment out toast in onstop method, toast in ondestroy method doesn't show up. reason this?

@override public void onstop() {     toast.maketext(getapplicationcontext(),"onstop",toast.length_long).show();      super.onstop(); }  @override public void ondestroy() {     toast.maketext(getapplicationcontext(),"ondestroy",toast.length_long).show();     super.ondestroy(); } 

you can check logcat error. run app , watch closing responses on logcat.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -