Discussion Forums  >  Crashes, Memory Warnings

Replies: 15    Views: 135

ASusoeff
Aspiring developer
Profile
Posts: 296
Reg: Aug 13, 2011
Bryant, AR
13,460
03/09/12 05:13 AM (12 years ago)

error in ViewRoot.setView()

exception class: android.view.WindowManager$BadTokenException Source Method: ViewRoot.setView() Stack Traces: android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@4065f728 is not valid; is your activity running? at android.view.ViewRoot.setView(ViewRoot.java:544) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:177) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91) at android.view.Window$LocalWindowManager.addView(Window.java:430) at android.app.Dialog.show(Dialog.java:288) at com.guidetosafescouting.BT_activity_base.showAlertFromClass(BT_activity_base.java:303) at com.guidetosafescouting.BT_screen_menuList$4.onItemClick(BT_screen_menuList.java:691) at android.widget.AdapterView.performItemClick(AdapterView.java:284) at android.widget.ListView.performItemClick(ListView.java:3604) at android.widget.AbsListView$PerformClick.run(AbsListView.java:1812) at android.os.Handler.handleCallback(Handler.java:587) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:143) at android.app.ActivityThread.main(ActivityThread.java:4196) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:507) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) at dalvik.system.NativeStart.main(Native Method) Any ideas guys?
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
03/09/12 06:39 AM (12 years ago)
I see you're having a problem. Please state the problem. Fred
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
03/09/12 06:39 AM (12 years ago)
I see you're having a problem. Please state the problem. Fred
 
ASusoeff
Aspiring developer
Profile
Posts: 296
Reg: Aug 13, 2011
Bryant, AR
13,460
like
03/09/12 06:42 AM (12 years ago)
this is the report of a crash error I got from android market
 
ASusoeff
Aspiring developer
Profile
Posts: 296
Reg: Aug 13, 2011
Bryant, AR
13,460
like
03/09/12 06:43 AM (12 years ago)
this is the report of a crash error I got from android market...i just assumed that since i was in the "crash and Memory Warnings area that it would be a given...sorry
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
03/09/12 06:55 AM (12 years ago)
There's another thread dealing with this issue from a couple days ago. Have you allowed install to SD card? I'm not saying that the problem but it could be the problem. What version, BTv1.5? What device? Operating Version of device? 2.3.4 ? Fred
 
ASusoeff
Aspiring developer
Profile
Posts: 296
Reg: Aug 13, 2011
Bryant, AR
13,460
like
03/11/12 06:34 AM (12 years ago)
what plugin allows sd card fred?
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
03/11/12 09:04 AM (12 years ago)
No need for plugin. Just make change to manifest. Step by step how-to in MySkylla's Guide to Buzztouch www.myskylla.wordpress.com Fred
 
ASusoeff
Aspiring developer
Profile
Posts: 296
Reg: Aug 13, 2011
Bryant, AR
13,460
like
03/11/12 11:14 AM (12 years ago)
quite a few articles there fred...exactly which one solved this issue?
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
03/11/12 11:17 AM (12 years ago)
Go to INDEX Fred
 
ASusoeff
Aspiring developer
Profile
Posts: 296
Reg: Aug 13, 2011
Bryant, AR
13,460
like
03/12/12 05:46 AM (12 years ago)
ok, looked at index at your blog, nothing about this error. Typed error into the serach bar on your blog, nothing about this error. Did you have a solution and you just want me to beg for it, or ar you just yankin me around, or what
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
03/12/12 08:05 AM (12 years ago)
You asked for help I suggested allow install to the SD card might help. Most apps that don't allow seem to have similar type problems. Your call. Fred
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
04/03/12 02:46 AM (12 years ago)
@ ASusoeff, this seems to be a bug, keep you posted
 
ASusoeff
Aspiring developer
Profile
Posts: 296
Reg: Aug 13, 2011
Bryant, AR
13,460
like
04/03/12 06:09 AM (12 years ago)
@ianjamespiano Thanks Mate!
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
04/03/12 05:46 PM (12 years ago)
What version are you running? v1,4, v1.5 or bt-server?
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
04/04/12 10:59 AM (12 years ago)
Till there is a better fix I am just catching the Force Close screen in the BT_activity_base.java public static void showAlertFromClass(String theTitle, String theMessage){ if(theTitle == "") theTitle = "No Alert Title?"; if(theMessage == "") theMessage = "No alert message?"; final AlertDialog theAlert = new AlertDialog.Builder(thisActivity).create(); theAlert.setTitle(theTitle); theAlert.setMessage(theMessage); theAlert.setIcon(R.drawable.icon); theAlert.setCancelable(false); theAlert.setButton("OK", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { theAlert.dismiss(); } }); try { theAlert.show(); } catch(Exception e){ // WindowManager$BadTokenException will be caught and the app would not display // the 'Force Close' message } }
 

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.