为什么我在连接重力传感器时,总是出现以下错误信息: Failed to find provider info for org.openintents.sensorsimulator04-07 11:38:35.769: ERROR/SensorSimulatorConvenience(542): java.lang.NullPointerException
04-07 11:38:35.769: ERROR/SensorSimulatorConvenience(542): at org.openintents.sensorsimulator.db.SensorSimulatorConvenience.getPreference(SensorSimulatorConvenience.java:116)
04-07 11:38:35.769: ERROR/SensorSimulatorConvenience(542): at org.openintents.sensorsimulator.hardware.SensorSimulatorClient.connect(SensorSimulatorClient.java:84)
04-07 11:38:35.769: ERROR/SensorSimulatorConvenience(542): at org.openintents.sensorsimulator.hardware.SensorManagerSimulator.connectSimulator(SensorManagerSimulator.java:188)
04-07 11:38:35.769: ERROR/SensorSimulatorConvenience(542): at com.android.DriftBall.onCreate(DriftBall.java:84)
04-07 11:38:35.769: ERROR/SensorSimulatorConvenience(542): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
04-07 11:38:35.769: ERROR/SensorSimulatorConvenience(542): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
04-07 11:38:35.769: ERROR/SensorSimulatorConvenience(542): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
04-07 11:38:35.769: ERROR/SensorSimulatorConvenience(542): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
04-07 11:38:35.769: ERROR/SensorSimulatorConvenience(542): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
04-07 11:38:35.769: ERROR/SensorSimulatorConvenience(542): at android.os.Handler.dispatchMessage(Handler.java:99)
04-07 11:38:35.769: ERROR/SensorSimulatorConvenience(542): at android.os.Looper.loop(Looper.java:123)
04-07 11:38:35.769: ERROR/SensorSimulatorConvenience(542): at android.app.ActivityThread.main(ActivityThread.java:4627)
04-07 11:38:35.769: ERROR/SensorSimulatorConvenience(542): at java.lang.reflect.Method.invokeNative(Native Method)
04-07 11:38:35.769: ERROR/SensorSimulatorConvenience(542): at java.lang.reflect.Method.invoke(Method.java:521)
04-07 11:38:35.769: ERROR/SensorSimulatorConvenience(542): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
04-07 11:38:35.769: ERROR/SensorSimulatorConvenience(542): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
04-07 11:38:35.769: ERROR/SensorSimulatorConvenience(542): at dalvik.system.NativeStart.main(Native Method)04-07 11:38:36.031: ERROR/AndroidRuntime(542): Caused by: java.lang.NumberFormatException: unable to parse 'Preferences table corrupt!' as integer
04-07 11:38:35.769: ERROR/SensorSimulatorConvenience(542): at org.openintents.sensorsimulator.db.SensorSimulatorConvenience.getPreference(SensorSimulatorConvenience.java:116)
04-07 11:38:35.769: ERROR/SensorSimulatorConvenience(542): at org.openintents.sensorsimulator.hardware.SensorSimulatorClient.connect(SensorSimulatorClient.java:84)
04-07 11:38:35.769: ERROR/SensorSimulatorConvenience(542): at org.openintents.sensorsimulator.hardware.SensorManagerSimulator.connectSimulator(SensorManagerSimulator.java:188)
04-07 11:38:35.769: ERROR/SensorSimulatorConvenience(542): at com.android.DriftBall.onCreate(DriftBall.java:84)
04-07 11:38:35.769: ERROR/SensorSimulatorConvenience(542): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
04-07 11:38:35.769: ERROR/SensorSimulatorConvenience(542): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
04-07 11:38:35.769: ERROR/SensorSimulatorConvenience(542): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
04-07 11:38:35.769: ERROR/SensorSimulatorConvenience(542): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
04-07 11:38:35.769: ERROR/SensorSimulatorConvenience(542): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
04-07 11:38:35.769: ERROR/SensorSimulatorConvenience(542): at android.os.Handler.dispatchMessage(Handler.java:99)
04-07 11:38:35.769: ERROR/SensorSimulatorConvenience(542): at android.os.Looper.loop(Looper.java:123)
04-07 11:38:35.769: ERROR/SensorSimulatorConvenience(542): at android.app.ActivityThread.main(ActivityThread.java:4627)
04-07 11:38:35.769: ERROR/SensorSimulatorConvenience(542): at java.lang.reflect.Method.invokeNative(Native Method)
04-07 11:38:35.769: ERROR/SensorSimulatorConvenience(542): at java.lang.reflect.Method.invoke(Method.java:521)
04-07 11:38:35.769: ERROR/SensorSimulatorConvenience(542): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
04-07 11:38:35.769: ERROR/SensorSimulatorConvenience(542): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
04-07 11:38:35.769: ERROR/SensorSimulatorConvenience(542): at dalvik.system.NativeStart.main(Native Method)04-07 11:38:36.031: ERROR/AndroidRuntime(542): Caused by: java.lang.NumberFormatException: unable to parse 'Preferences table corrupt!' as integer
解决方案 »
- 无法找到activity
- android 推送如何实现
- 要平铺图片,兼用布局让文字浮在图片上,用gridview发现高度太高,无法让字正常显示,类似小米的主题选择页面的平铺是用什么做的?table?
- 短信搜索问题
- 手机与电脑蓝牙适配器连接配对后搜不到服务,无法传送文件
- 用蓝牙同时传输文本和图片的问题
- 继承CursorAdapter自定义来显示图片和信息的,但是调用时它只执行了构造函数,其它函数没有执行,这是什么情况,请高手指教!!
- 初学者hello world的问题。。。
- 布局奇怪的效果?!各位能帮忙看看吗?
- 切换回主界面,主界面又重新初始化了,在256M内存手机中
- Content Provider里面的 getType 方法起什么作用
- 动态控件的id问题
在SensorSimulatorConvenience.java中 org.openintents.sensorsimulator.db.SensorSimulatorConvenience.getPreference
就是getPreference get不到东西
NumberFormatException异常。
sensorManager.connectSimulator();报错
08-08 16:42:35.352: E/CMarlinMediator(1483): [13] ERROR : const sony::drm::CTime sony::drm::CMarlinMediator::getTrustedTime() calling tt_GetTrustedTime. return code 588120065
08-08 16:42:37.554: E/PushConnection(6035): receive err,errno:0
08-08 16:42:40.697: E/ActivityThread(7382): Failed to find provider info for org.openintents.sensorsimulator
08-08 16:42:40.707: E/SensorSimulatorConvenience(7382): insert into table 'contains' failed
08-08 16:42:40.707: E/SensorSimulatorConvenience(7382): java.lang.NullPointerException
08-08 16:42:40.707: E/SensorSimulatorConvenience(7382): at org.openintents.sensorsimulator.db.SensorSimulatorConvenience.getPreference(SensorSimulatorConvenience.java:129)
08-08 16:42:40.707: E/SensorSimulatorConvenience(7382): at org.openintents.sensorsimulator.hardware.SensorSimulatorClient.connect(SensorSimulatorClient.java:108)
08-08 16:42:40.707: E/SensorSimulatorConvenience(7382): at org.openintents.sensorsimulator.hardware.SensorManagerSimulator.connectSimulator(SensorManagerSimulator.java:220)
08-08 16:42:40.707: E/SensorSimulatorConvenience(7382): at com.zgct.Main.onCreate(Main.java:30)
08-08 16:42:40.707: E/SensorSimulatorConvenience(7382): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
08-08 16:42:40.707: E/SensorSimulatorConvenience(7382): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1623)
08-08 16:42:40.707: E/SensorSimulatorConvenience(7382): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1675)
08-08 16:42:40.707: E/SensorSimulatorConvenience(7382): at android.app.ActivityThread.access$1500(ActivityThread.java:121)
08-08 16:42:40.707: E/SensorSimulatorConvenience(7382): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:943)
08-08 16:42:40.707: E/SensorSimulatorConvenience(7382): at android.os.Handler.dispatchMessage(Handler.java:99)
08-08 16:42:40.707: E/SensorSimulatorConvenience(7382): at android.os.Looper.loop(Looper.java:138)
08-08 16:42:40.707: E/SensorSimulatorConvenience(7382): at android.app.ActivityThread.main(ActivityThread.java:3701)
08-08 16:42:40.707: E/SensorSimulatorConvenience(7382): at java.lang.reflect.Method.invokeNative(Native Method)
08-08 16:42:40.707: E/SensorSimulatorConvenience(7382): at java.lang.reflect.Method.invoke(Method.java:507)
08-08 16:42:40.707: E/SensorSimulatorConvenience(7382): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:878)
08-08 16:42:40.707: E/SensorSimulatorConvenience(7382): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:636)
08-08 16:42:40.707: E/SensorSimulatorConvenience(7382): at dalvik.system.NativeStart.main(Native Method)
08-08 16:42:40.717: E/SensorSimulatorConvenience(7382): insert into table 'contains' failed
08-08 16:42:40.717: E/SensorSimulatorConvenience(7382): java.lang.NullPointerException
08-08 16:42:40.717: E/SensorSimulatorConvenience(7382): at org.openintents.sensorsimulator.db.SensorSimulatorConvenience.getPreference(SensorSimulatorConvenience.java:129)
08-08 16:42:40.717: E/SensorSimulatorConvenience(7382): at org.openintents.sensorsimulator.hardware.SensorSimulatorClient.connect(SensorSimulatorClient.java:110)
08-08 16:42:40.717: E/SensorSimulatorConvenience(7382): at org.openintents.sensorsimulator.hardware.SensorManagerSimulator.connectSimulator(SensorManagerSimulator.java:220)
08-08 16:42:40.717: E/SensorSimulatorConvenience(7382): at com.zgct.Main.onCreate(Main.java:30)
08-08 16:42:40.717: E/SensorSimulatorConvenience(7382): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
08-08 16:42:40.717: E/SensorSimulatorConvenience(7382): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1623)
08-08 16:42:40.717: E/SensorSimulatorConvenience(7382): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1675)
08-08 16:42:40.717: E/SensorSimulatorConvenience(7382): at android.app.ActivityThread.access$1500(ActivityThread.java:121)
08-08 16:42:40.717: E/SensorSimulatorConvenience(7382): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:943)
08-08 16:42:40.717: E/SensorSimulatorConvenience(7382): at android.os.Handler.dispatchMessage(Handler.java:99)
08-08 16:42:40.717: E/SensorSimulatorConvenience(7382): at android.os.Looper.loop(Looper.java:138)
08-08 16:42:40.717: E/SensorSimulatorConvenience(7382): at android.app.ActivityThread.main(ActivityThread.java:3701)
08-08 16:42:40.717: E/SensorSimulatorConvenience(7382): at java.lang.reflect.Method.invokeNative(Native Method)
08-08 16:42:40.717: E/SensorSimulatorConvenience(7382): at java.lang.reflect.Method.invoke(Method.java:507)
08-08 16:42:40.717: E/SensorSimulatorConvenience(7382): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:878)
08-08 16:42:40.717: E/SensorSimulatorConvenience(7382): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:636)
08-08 16:42:40.717: E/SensorSimulatorConvenience(7382): at dalvik.system.NativeStart.main(Native Method)
08-08 16:42:40.717: E/ActivityThread(7382): Failed to find provider info for org.openintents.sensorsimulator
08-08 16:42:40.737: E/AndroidRuntime(7382): FATAL EXCEPTION: main
08-08 16:42:40.737: E/AndroidRuntime(7382): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.zgct/com.zgct.Main}: java.lang.NumberFormatException: unable to parse 'Preferences table corrupt!' as integer
08-08 16:42:40.737: E/AndroidRuntime(7382): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1659)
08-08 16:42:40.737: E/AndroidRuntime(7382): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1675)
08-08 16:42:40.737: E/AndroidRuntime(7382): at android.app.ActivityThread.access$1500(ActivityThread.java:121)
08-08 16:42:40.737: E/AndroidRuntime(7382): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:943)
08-08 16:42:40.737: E/AndroidRuntime(7382): at android.os.Handler.dispatchMessage(Handler.java:99)
08-08 16:42:40.737: E/AndroidRuntime(7382): at android.os.Looper.loop(Looper.java:138)
08-08 16:42:40.737: E/AndroidRuntime(7382): at android.app.ActivityThread.main(ActivityThread.java:3701)
08-08 16:42:40.737: E/AndroidRuntime(7382): at java.lang.reflect.Method.invokeNative(Native Method)
08-08 16:42:40.737: E/AndroidRuntime(7382): at java.lang.reflect.Method.invoke(Method.java:507)
08-08 16:42:40.737: E/AndroidRuntime(7382): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:878)
08-08 16:42:40.737: E/AndroidRuntime(7382): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:636)
08-08 16:42:40.737: E/AndroidRuntime(7382): at dalvik.system.NativeStart.main(Native Method)
08-08 16:42:40.737: E/AndroidRuntime(7382): Caused by: java.lang.NumberFormatException: unable to parse 'Preferences table corrupt!' as integer
08-08 16:42:40.737: E/AndroidRuntime(7382): at java.lang.Integer.parse(Integer.java:383)
08-08 16:42:40.737: E/AndroidRuntime(7382): at java.lang.Integer.parseInt(Integer.java:372)
08-08 16:42:40.737: E/AndroidRuntime(7382): at java.lang.Integer.parseInt(Integer.java:332)
08-08 16:42:40.737: E/AndroidRuntime(7382): at org.openintents.sensorsimulator.hardware.SensorSimulatorClient.connect(SensorSimulatorClient.java:116)
08-08 16:42:40.737: E/AndroidRuntime(7382): at org.openintents.sensorsimulator.hardware.SensorManagerSimulator.connectSimulator(SensorManagerSimulator.java:220)
08-08 16:42:40.737: E/AndroidRuntime(7382): at com.zgct.Main.onCreate(Main.java:30)