Discussion Forums  >  Crashes, Memory Warnings

Replies: 4    Views: 184

ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
04/02/12 11:05 PM (12 years ago)

Android Send SMS Crash

Edit : this seems to be for any time an Alert Dialog comes on screen (not just for SMS)...Happens after hitting back button on Android and returning to the Menu List to make a selection (if there is an Alert Dialog to show) Android BT-server...this is on real device (Android 2.3) and Emulatore When using a device that is not capable of sending SMS/text messages the app will crash most times instead of displaying the Native App not found warning. Seems to be if the SMS screen is chosen as soon as the app opens the expected warning dialogue will show but if you go to the SMS screen after any other activity has happened the app will crash saying Force Close...here is what Log Cat shows for the crash then Force close...any ideas? thanks!! 04-03 00:35:33.831: E/AndroidRuntime(626): FATAL EXCEPTION: main 04-03 00:35:33.831: E/AndroidRuntime(626): android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@4505c330 is not valid; is your activity running? 04-03 00:35:33.831: E/AndroidRuntime(626): at android.view.ViewRoot.setView(ViewRoot.java:505) 04-03 00:35:33.831: E/AndroidRuntime(626): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:177) 04-03 00:35:33.831: E/AndroidRuntime(626): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91) 04-03 00:35:33.831: E/AndroidRuntime(626): at android.view.Window$LocalWindowManager.addView(Window.java:424) 04-03 00:35:33.831: E/AndroidRuntime(626): at android.app.Dialog.show(Dialog.java:241) 04-03 00:35:33.831: E/AndroidRuntime(626): at com.maintenanceadvisor.BT_activity_base.showAlertFromClass(BT_activity_base.java:308) 04-03 00:35:33.831: E/AndroidRuntime(626): at com.maintenanceadvisor.BT_act_controller.sendSMSWithScreenData(BT_act_controller.java:498) 04-03 00:35:33.831: E/AndroidRuntime(626): at com.maintenanceadvisor.BT_act_controller.loadScreenObject(BT_act_controller.java:226) 04-03 00:35:33.831: E/AndroidRuntime(626): at com.maintenanceadvisor.BT_screen_menuListSimpleAdvanced$4.onItemClick(BT_screen_menuListSimpleAdvanced.java:760) 04-03 00:35:33.831: E/AndroidRuntime(626): at android.widget.AdapterView.performItemClick(AdapterView.java:284) 04-03 00:35:33.831: E/AndroidRuntime(626): at android.widget.ListView.performItemClick(ListView.java:3382) 04-03 00:35:33.831: E/AndroidRuntime(626): at android.widget.AbsListView$PerformClick.run(AbsListView.java:1696) 04-03 00:35:33.831: E/AndroidRuntime(626): at android.os.Handler.handleCallback(Handler.java:587) 04-03 00:35:33.831: E/AndroidRuntime(626): at android.os.Handler.dispatchMessage(Handler.java:92) 04-03 00:35:33.831: E/AndroidRuntime(626): at android.os.Looper.loop(Looper.java:123) 04-03 00:35:33.831: E/AndroidRuntime(626): at android.app.ActivityThread.main(ActivityThread.java:4627) 04-03 00:35:33.831: E/AndroidRuntime(626): at java.lang.reflect.Method.invokeNative(Native Method) 04-03 00:35:33.831: E/AndroidRuntime(626): at java.lang.reflect.Method.invoke(Method.java:521) 04-03 00:35:33.831: E/AndroidRuntime(626): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868) 04-03 00:35:33.831: E/AndroidRuntime(626): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 04-03 00:35:33.831: E/AndroidRuntime(626): at dalvik.system.NativeStart.main(Native Method)
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
04/02/12 11:23 PM (12 years ago)
And you're using BTv2.0? Fred
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
04/02/12 11:24 PM (12 years ago)
Yes
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
04/02/12 11:27 PM (12 years ago)
Edit : doing it on Simple Menu as well...seems to be when I made simple menu a home screen?
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
04/03/12 12:15 AM (12 years ago)
This does happen in the BT v1.5 for Android as well...hmmm?
 

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.