Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 7    Views: 54

Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
01/24/13 05:20 AM (13 years ago)

Log in Screen plugin force closing on multiple devices (Android)

Getting a force close every time on the login screen plugin.. Can anyone help? Logcat: E/AndroidRuntime(7994): FATAL EXCEPTION: main E/AndroidRuntime(7994): android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@4133fe40 is not valid; is your activity running? Steps to replicate.. Require a login for a wb_image_menu. add the locked wb_image_menu to a list in another wb_image_menu. Before the login screen has been completed, click ANY item in the wb_image_menu except the locked menu link, navigate back and click the locked menu link. Force close. ************************** If the locked screen link is clicked first, the dialogue pops up ok, it can be closed and re-opened any amount of times and it's ok. As soon as any other link in the menu is clicked, clicking on the locked menu link will cause a force close. Looking on stackoverflow, it does appear to be something to do with the dialogue pop-up, but the code solutions on stackoverflow aren't obvious (to me) in the bt code. http://stackoverflow.com/questions/3516842/android-view-windowmanagerbadtokenexception-exception-any-pointer Anyone else getting this?
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/24/13 06:29 AM (13 years ago)
Hey @raveyd, I have never used the log in screen but it looks like the App is destroying itself before it can run it's course through a lifecycle. That's what happened to me when I received this error. LA
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
01/24/13 10:09 AM (13 years ago)
Hi @LA, what did you do to fix the error?
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/24/13 10:47 AM (13 years ago)
@raveyd, I can't remember exactly but I think either took away onDestroy or added onPause. LA
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/24/13 10:55 AM (13 years ago)
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
01/24/13 11:30 AM (13 years ago)
Thanks @LA, that'd be a great help in a regular Android project, but in a BT project, well... It could be in the BT_act_controller.java or WB_screen_menuImage.java or BT_activity_base.java or BT_screen_settings_LogIn.java arggggggggghhhhhhhhhh!!!!!!!!!
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/24/13 11:54 AM (13 years ago)
@raveyd, Yeah I know. Sorry I couldn't help any. LA
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
01/24/13 12:08 PM (13 years ago)
Don't be sorry mate! Thanks for trying
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.