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
Post a Comment