Error when closing a screen: "View not attached to window manager"

40 views
Skip to first unread message

Wilfred

unread,
Aug 11, 2015, 4:53:03 PM8/11/15
to MIT App Inventor Forum
Hi everybody!

I've been working on my app for the past 2 months, and im about to finish it thanks to the help of many of you, but there's one last issue that haven't been able to solve yet, and i hope that maybe you could give me a hint of what's going on.
My app has 3 screens. Im using Screen1 as the manager screen (as explained on the Pura Vida web site: http://puravidaapps.com/manager.php). Between screens 1 and 2, I have no problems on going back and forth, but every time i try to get out out from screen 3, the app stops and closes. 
As suggested by Taifun on this same forum, i run logcat to see what was causing the failure, and the lines following the error are the following:

E/AndroidRuntime(  473): FATAL EXCEPTION: main
E/AndroidRuntime(  473): java.lang.IllegalArgumentException: View not attached to window manager
E/AndroidRuntime(  473):        at android.view.WindowManagerImpl.findViewLocked(WindowManagerImpl.java:355)
E/AndroidRuntime(  473):        at android.view.WindowManagerImpl.removeView(WindowManagerImpl.java:200)
E/AndroidRuntime(  473):        at android.view.Window$LocalWindowManager.removeView(Window.java:432)

The only references i found on the internet where about the orientation of the screens im visiting, but is not the case here.
Any ideas what might be triggering this error?

Cheers, 

Wilfred

Wilfred

unread,
Aug 11, 2015, 5:40:01 PM8/11/15
to MIT App Inventor Forum
Solved! :)

There was a method taking to a fusion table the moment i was closing the screen. 

Thanks everybody for all the help, kindness and patience.

Cheers, Wilfred
Reply all
Reply to author
Forward
0 new messages