显示数据值和图形后重新启动应用程序

时间:2014-06-16 03:47:31

标签: java android sensor

我有一个Android应用程序,它获取外部传感器值并在android中显示为数据视图和图形视图,以及在webservice中显示数据视图。一旦我能够获得并显示价值,但在获得少量数据后,它将进入之前的活动。有人可以帮我找错。 Logcat随附

06-16 08:45:21.992: D/dalvikvm(9925): GC_CONCURRENT freed 300K, 8% free 9493K/10311K, paused 27ms+4ms, total 74ms
06-16 08:45:21.992: D/dalvikvm(9925): WAIT_FOR_CONCURRENT_GC blocked 39ms
06-16 08:45:21.992: D/dalvikvm(9925): WAIT_FOR_CONCURRENT_GC blocked 40ms
06-16 08:45:21.992: D/dalvikvm(9925): WAIT_FOR_CONCURRENT_GC blocked 39ms
06-16 08:45:21.992: D/dalvikvm(9925): WAIT_FOR_CONCURRENT_GC blocked 36ms
06-16 08:45:21.992: D/dalvikvm(9925): WAIT_FOR_CONCURRENT_GC blocked 35ms
06-16 08:45:21.992: D/dalvikvm(9925): WAIT_FOR_CONCURRENT_GC blocked 31ms
06-16 08:45:21.992: D/dalvikvm(9925): WAIT_FOR_CONCURRENT_GC blocked 31ms
06-16 08:45:21.992: D/dalvikvm(9925): WAIT_FOR_CONCURRENT_GC blocked 32ms
06-16 08:45:21.992: D/dalvikvm(9925): WAIT_FOR_CONCURRENT_GC blocked 32ms
06-16 08:45:21.992: D/dalvikvm(9925): WAIT_FOR_CONCURRENT_GC blocked 32ms
06-16 08:45:22.000: D/dalvikvm(9925): WAIT_FOR_CONCURRENT_GC blocked 31ms
06-16 08:45:22.000: D/dalvikvm(9925): WAIT_FOR_CONCURRENT_GC blocked 32ms
06-16 08:45:22.000: D/dalvikvm(9925): WAIT_FOR_CONCURRENT_GC blocked 32ms
06-16 08:45:22.000: D/dalvikvm(9925): WAIT_FOR_CONCURRENT_GC blocked 39ms
06-16 08:45:22.000: D/dalvikvm(9925): WAIT_FOR_CONCURRENT_GC blocked 33ms
06-16 08:45:22.000: D/dalvikvm(9925): WAIT_FOR_CONCURRENT_GC blocked 39ms
06-16 08:45:22.000: D/dalvikvm(9925): WAIT_FOR_CONCURRENT_GC blocked 39ms
06-16 08:45:22.000: D/dalvikvm(9925): WAIT_FOR_CONCURRENT_GC blocked 15ms
06-16 08:45:22.000: D/dalvikvm(9925): WAIT_FOR_CONCURRENT_GC blocked 40ms
06-16 08:45:22.007: D/dalvikvm(9925): WAIT_FOR_CONCURRENT_GC blocked 45ms
06-16 08:45:22.070: D/dalvikvm(9925): GC_FOR_ALLOC freed 12K, 8% free 9950K/10759K, paused 63ms, total 63ms
06-16 08:45:22.070: D/dalvikvm(9925): WAIT_FOR_CONCURRENT_GC blocked 87ms
06-16 08:45:22.070: D/dalvikvm(9925): WAIT_FOR_CONCURRENT_GC blocked 106ms
06-16 08:45:22.070: D/dalvikvm(9925): WAIT_FOR_CONCURRENT_GC blocked 107ms
06-16 08:45:22.078: D/dalvikvm(9925): WAIT_FOR_CONCURRENT_GC blocked 90ms
06-16 08:45:22.078: D/dalvikvm(9925): WAIT_FOR_CONCURRENT_GC blocked 113ms
06-16 08:45:22.078: D/dalvikvm(9925): WAIT_FOR_CONCURRENT_GC blocked 114ms
06-16 08:45:22.078: D/dalvikvm(9925): WAIT_FOR_CONCURRENT_GC blocked 125ms
06-16 08:45:22.078: D/dalvikvm(9925): WAIT_FOR_CONCURRENT_GC blocked 125ms
06-16 08:45:22.093: D/dalvikvm(9925): WAIT_FOR_CONCURRENT_GC blocked 125ms
06-16 08:45:22.093: D/dalvikvm(9925): WAIT_FOR_CONCURRENT_GC blocked 125ms
06-16 08:45:22.093: D/dalvikvm(9925): WAIT_FOR_CONCURRENT_GC blocked 127ms
06-16 08:45:22.093: D/dalvikvm(9925): WAIT_FOR_CONCURRENT_GC blocked 111ms
06-16 08:45:22.093: D/dalvikvm(9925): WAIT_FOR_CONCURRENT_GC blocked 111ms
06-16 08:45:22.093: D/dalvikvm(9925): WAIT_FOR_CONCURRENT_GC blocked 113ms
06-16 08:45:22.101: D/dalvikvm(9925): WAIT_FOR_CONCURRENT_GC blocked 113ms
06-16 08:45:22.101: D/dalvikvm(9925): WAIT_FOR_CONCURRENT_GC blocked 116ms
06-16 08:45:22.109: I/System.out(9925): Response Code : 406
06-16 08:45:22.164: D/dalvikvm(9925): GC_FOR_ALLOC freed 66K, 7% free 10616K/11399K, paused 52ms, total 53ms
06-16 08:45:22.171: W/dalvikvm(9925): threadid=19: thread exiting with uncaught exception (group=0x410ff2a0)
06-16 08:45:22.179: I/System.out(9925): Response Code : 406
06-16 08:45:22.179: V/BluetoothSocket.cpp(9925): readNative
06-16 08:45:22.179: D/Shimmer(9925): MSGREAD
06-16 08:45:22.179: I/System.out(9925): Response Code : 406
06-16 08:45:22.187: E/Log E(9925):  >>>>> Array INO: 0.38613861386138615 0.7524752475247525 6.445544554455446
06-16 08:45:22.187: I/System.out(9925): Response Code : 406
06-16 08:45:22.187: W/dalvikvm(9925): threadid=43: thread exiting with uncaught exception (group=0x410ff2a0)
06-16 08:45:29.054: W/Bundle(10074): Key patientid expected String but value was a java.lang.Integer.  The default value <null> was returned.
06-16 08:45:29.062: W/Bundle(10074): Attempt to cast generated internal exception:
06-16 08:45:29.062: W/Bundle(10074): java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
06-16 08:45:29.062: W/Bundle(10074):    at android.os.Bundle.getString(Bundle.java:1061)
06-16 08:45:29.062: W/Bundle(10074):    at com.shimmerresearch.shimmergraph.PatientActivity.onCreate(PatientActivity.java:29)
06-16 08:45:29.062: W/Bundle(10074):    at android.app.Activity.performCreate(Activity.java:5163)
06-16 08:45:29.062: W/Bundle(10074):    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)
06-16 08:45:29.062: W/Bundle(10074):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2061)
06-16 08:45:29.062: W/Bundle(10074):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2122)
06-16 08:45:29.062: W/Bundle(10074):    at android.app.ActivityThread.access$600(ActivityThread.java:140)
06-16 08:45:29.062: W/Bundle(10074):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1228)
06-16 08:45:29.062: W/Bundle(10074):    at android.os.Handler.dispatchMessage(Handler.java:99)
06-16 08:45:29.062: W/Bundle(10074):    at android.os.Looper.loop(Looper.java:137)
06-16 08:45:29.062: W/Bundle(10074):    at android.app.ActivityThread.main(ActivityThread.java:4895)
06-16 08:45:29.062: W/Bundle(10074):    at java.lang.reflect.Method.invokeNative(Native Method)
06-16 08:45:29.062: W/Bundle(10074):    at java.lang.reflect.Method.invoke(Method.java:511)
06-16 08:45:29.062: W/Bundle(10074):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:994)
06-16 08:45:29.062: W/Bundle(10074):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:761)
06-16 08:45:29.062: W/Bundle(10074):    at dalvik.system.NativeStart.main(Native Method)
06-16 08:45:29.250: I/System.out(10074): Response Code : 200
06-16 08:45:29.281: D/dalvikvm(10074): GC_CONCURRENT freed 247K, 10% free 7525K/8327K, paused 5ms+3ms, total 31ms
06-16 08:45:33.453: E/SensorManager(10074): thread start
06-16 08:45:33.453: D/SensorManager(10074): registerListener :: handle = 1  name= BMA254 Acceleration Sensor delay= 200000 Listener= android.view.OrientationEventListener$SensorEventListenerImpl@418b5340
06-16 08:45:33.476: D/SensorManager(10074): unregisterListener::  Listener= android.view.OrientationEventListener$SensorEventListenerImpl@418b5340
06-16 08:45:33.476: D/Sensors(10074): Remain listener = Sending .. normal delay 200ms
06-16 08:45:33.476: I/Sensors(10074): sendDelay --- 200000000
06-16 08:45:33.476: D/SensorManager(10074): JNI - sendDelay
06-16 08:45:33.476: I/SensorManager(10074): Set normal delay = true
06-16 08:45:33.476: D/SensorManager(10074): registerListener :: handle = 1  name= BMA254 Acceleration Sensor delay= 200000 Listener= android.view.OrientationEventListener$SensorEventListenerImpl@418dccd0
06-16 08:45:33.484: D/SensorManager(10074): unregisterListener::  Listener= android.view.OrientationEventListener$SensorEventListenerImpl@418dccd0
06-16 08:45:33.484: D/Sensors(10074): Remain listener = Sending .. normal delay 200ms
06-16 08:45:33.484: I/Sensors(10074): sendDelay --- 200000000
06-16 08:45:33.484: D/SensorManager(10074): JNI - sendDelay
06-16 08:45:33.484: I/SensorManager(10074): Set normal delay = true
06-16 08:45:33.492: D/SensorManager(10074): registerListener :: handle = 1  name= BMA254 Acceleration Sensor delay= 200000 Listener= android.view.OrientationEventListener$SensorEventListenerImpl@418dccd0
06-16 08:45:33.687: E/SpannableStringBuilder(10074): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
06-16 08:45:33.687: E/SpannableStringBuilder(10074): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
06-16 08:45:33.710: D/SensorManager(10074): unregisterListener::  Listener= android.view.OrientationEventListener$SensorEventListenerImpl@418dccd0
06-16 08:45:33.710: D/Sensors(10074): Remain listener = Sending .. normal delay 200ms
06-16 08:45:33.710: I/Sensors(10074): sendDelay --- 200000000
06-16 08:45:33.710: D/SensorManager(10074): JNI - sendDelay
06-16 08:45:33.710: I/SensorManager(10074): Set normal delay = true
06-16 08:45:33.968: W/IInputConnectionWrapper(10074): showStatusIcon on inactive InputConnection

0 个答案:

没有答案