Re: [android-developers] [Android] java.lang.RuntimeException: Unable to start activity ComponentInfo
I cannot use debugger when run monkey test. (monkey test likes windows mobile's hopper test.) From the log, the crashing code is super.onRestoreInstanceState(). 2010/10/14 TreKing treking...@gmail.com On Wed, Oct 13, 2010 at 8:55 PM, kevens hao ithjf.kev...@gmail.comwrote: I do not understand your means. Can you explain it clearly? [Note] This exception occurs when run monkey test. If test it manually, cannot reproduce it. I don't know how monkey works, but normally you step through your debugger to get a better of idea of where exactly your code is crashing. Are you able to use your debugger while getting this exception? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] [Android] java.lang.RuntimeException: Unable to start activity ComponentInfo
On Thu, Oct 14, 2010 at 1:23 AM, kevens hao ithjf.kev...@gmail.com wrote: I cannot use debugger when run monkey test. (monkey test likes windows mobile's hopper test.) From the log, the crashing code is super.onRestoreInstanceState(). Well then put in a lot more logging? Not sure what else to tell you. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] [Android] java.lang.RuntimeException: Unable to start activity ComponentInfo
When invoke super.onRestoreInstanceState, occur exception. [Code] @Override protected void onRestoreInstanceState(Bundle savedInstanceState) { Log.d(LOGTAG, + onRestoreInstanceState()); mFrequency = savedInstanceState.getInt(Constants.CURRENT_FRE); mCurrentFre = savedInstanceState.getInt(Constants.CURRENT_FRE); mStationName = savedInstanceState.getString(Constants.STATION_NAME); mStationIndex = savedInstanceState.getInt(Constants.STATIONPLAY_INDEX, -1); mStarCheckBox.setText(mStationName); boolean isStaron = savedInstanceState .getBoolean(Constants.CURRENT_STAR); mStarCheckBox.setChecked(isStaron); if (isStaron) { mStarCheckBox.setButtonDrawable(R.drawable.starcheckedbtn); } else { mStarCheckBox.setButtonDrawable(R.drawable.starbtn); } boolean isRecording = savedInstanceState .getBoolean(Constants.CURRENT_RECORDING); // if (isRecording) { // startRecord(); // } mOnOrOff = savedInstanceState.getBoolean(Constants.ONOFF_FLAG); mHeadSet = savedInstanceState.getBoolean(Constants.ONOFF_HeadSet); if (mOnOrOff) { turnON(); // fmOn(); } mIsBack = true; super.onRestoreInstanceState(savedInstanceState); Log.d(LOGTAG, - onRestoreInstanceState()); } [Log] 01-01 08:53:48.560 E/AndroidRuntime( 5107): FATAL EXCEPTION: main 01-01 08:53:48.560 E/AndroidRuntime( 5107): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.spreadcomm.fmradio/com.spreadcomm.fmradio.FMRadio}: java.lang.RuntimeException: Parcel android.os.par...@32aed580: Unmarshalling unknown type code 51 at offset 492 01-01 08:53:48.560 E/AndroidRuntime( 5107): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2663) 01-01 08:53:48.560 E/AndroidRuntime( 5107): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2679) 01-01 08:53:48.560 E/AndroidRuntime( 5107): at android.app.ActivityThread.access$2300(ActivityThread.java:125) 01-01 08:53:48.560 E/AndroidRuntime( 5107): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033) 01-01 08:53:48.560 E/AndroidRuntime( 5107): at android.os.Handler.dispatchMessage(Handler.java:99) 01-01 08:53:48.560 E/AndroidRuntime( 5107): at android.os.Looper.loop(Looper.java:123) 01-01 08:53:48.560 E/AndroidRuntime( 5107): at android.app.ActivityThread.main(ActivityThread.java:4627) 01-01 08:53:48.560 E/AndroidRuntime( 5107): at java.lang.reflect.Method.invokeNative(Native Method) 01-01 08:53:48.560 E/AndroidRuntime( 5107): at java.lang.reflect.Method.invoke(Method.java:521) 01-01 08:53:48.560 E/AndroidRuntime( 5107): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:930) 01-01 08:53:48.560 E/AndroidRuntime( 5107): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:688) 01-01 08:53:48.560 E/AndroidRuntime( 5107): at dalvik.system.NativeStart.main(Native Method) 01-01 08:53:48.560 E/AndroidRuntime( 5107): Caused by: java.lang.RuntimeException: Parcel android.os.par...@32aed580: Unmarshalling unknown type code 51 at offset 492 01-01 08:53:48.560 E/AndroidRuntime( 5107): at android.os.Parcel.readValue(Parcel.java:1838) 01-01 08:53:48.560 E/AndroidRuntime( 5107): at android.os.Parcel.readSparseArrayInternal(Parcel.java:2037) 01-01 08:53:48.560 E/AndroidRuntime( 5107): at android.os.Parcel.readSparseArray(Parcel.java:1493) 01-01 08:53:48.560 E/AndroidRuntime( 5107): at android.os.Parcel.readValue(Parcel.java:1828) 01-01 08:53:48.560 E/AndroidRuntime( 5107): at android.os.Parcel.readMapInternal(Parcel.java:2008) 01-01 08:53:48.560 E/AndroidRuntime( 5107): at android.os.Bundle.unparcel(Bundle.java:208) 01-01 08:53:48.560 E/AndroidRuntime( 5107): at android.os.Bundle.getSparseParcelableArray(Bundle.java:1167) 01-01 08:53:48.560 E/AndroidRuntime( 5107): at com.android.internal.policy.impl.PhoneWindow.restoreHierarchyState(PhoneWindow.java: 1496) 01-01 08:53:48.560 E/AndroidRuntime( 5107): at android.app.Activity.onRestoreInstanceState(Activity.java:843) 01-01 08:53:48.560 E/AndroidRuntime( 5107): at com.spreadcomm.fmradio.FMRadio.onRestoreInstanceState(FMRadio.java: 867) 01-01 08:53:48.560 E/AndroidRuntime( 5107): at android.app.Activity.performRestoreInstanceState(Activity.java:815) 01-01 08:53:48.560 E/AndroidRuntime( 5107): at android.app.Instrumentation.callActivityOnRestoreInstanceState(Instrumentation.java: 1096) 01-01 08:53:48.560 E/AndroidRuntime( 5107): at
Re: [android-developers] [Android] java.lang.RuntimeException: Unable to start activity ComponentInfo
On Wed, Oct 13, 2010 at 2:41 AM, kevens hao ithjf.kev...@gmail.com wrote: When invoke super.onRestoreInstanceState, occur exception. Step through the debugger to determine which line, specifically, is causing the issue, then go from there. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] [Android] java.lang.RuntimeException: Unable to start activity ComponentInfo
Hi TreKing, I do not understand your means. Can you explain it clearly? [Note] This exception occurs when run monkey test. If test it manually, cannot reproduce it. 2010/10/13 TreKing treking...@gmail.com On Wed, Oct 13, 2010 at 2:41 AM, kevens hao ithjf.kev...@gmail.comwrote: When invoke super.onRestoreInstanceState, occur exception. Step through the debugger to determine which line, specifically, is causing the issue, then go from there. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] [Android] java.lang.RuntimeException: Unable to start activity ComponentInfo
On Wed, Oct 13, 2010 at 8:55 PM, kevens hao ithjf.kev...@gmail.com wrote: I do not understand your means. Can you explain it clearly? [Note] This exception occurs when run monkey test. If test it manually, cannot reproduce it. I don't know how monkey works, but normally you step through your debugger to get a better of idea of where exactly your code is crashing. Are you able to use your debugger while getting this exception? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en