view not attached to window manager error in android
You will get this kind of error when your view in null ,so u have to use try,catch to handle this situation.
Try{ if(dialog !=null){ if(dialog isshowing()){ dialog.dismiss(); } dialog=null; }catch(Exception e){ } |
No comments:
Post a Comment