我正在实现蓝牙设备连接到我的应用程序,在教程的帮助下创建这种类型,但是为了启动我的应用程序,我收到以下错误:
m_f2
我正在寻找错误的论坛,但我发现可能失败了,因为他试图传递一个空对象,因为它没有正确初始化我的ArrayAdapter,但据我说,它没事,&# 39;他们为什么来找你。我想知道这个错误的原因在哪里,我离开了班级。
02-19 14:02:55.995: E/AndroidRuntime(19694): FATAL EXCEPTION: main
02-19 14:02:55.995: E/AndroidRuntime(19694): Process: com.eventrid.scanner, PID: 19694
02-19 14:02:55.995: E/AndroidRuntime(19694): java.lang.RuntimeException: Error receiving broadcast Intent { act=android.bluetooth.device.action.FOUND flg=0x10 (has extras) } in com.eventrid.scanner.Test$2@224c4121
02-19 14:02:55.995: E/AndroidRuntime(19694): at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:876)
02-19 14:02:55.995: E/AndroidRuntime(19694): at android.os.Handler.handleCallback(Handler.java:746)
02-19 14:02:55.995: E/AndroidRuntime(19694): at android.os.Handler.dispatchMessage(Handler.java:95)
02-19 14:02:55.995: E/AndroidRuntime(19694): at android.os.Looper.loop(Looper.java:135)
02-19 14:02:55.995: E/AndroidRuntime(19694): at android.app.ActivityThread.main(ActivityThread.java:5343)
02-19 14:02:55.995: E/AndroidRuntime(19694): at java.lang.reflect.Method.invoke(Native Method)
02-19 14:02:55.995: E/AndroidRuntime(19694): at java.lang.reflect.Method.invoke(Method.java:372)
02-19 14:02:55.995: E/AndroidRuntime(19694): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905)
02-19 14:02:55.995: E/AndroidRuntime(19694): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700)
02-19 14:02:55.995: E/AndroidRuntime(19694): Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
02-19 14:02:55.995: E/AndroidRuntime(19694): at com.eventrid.scanner.Test$2.onReceive(Test.java:130)
02-19 14:02:55.995: E/AndroidRuntime(19694): at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:866)
02-19 14:02:55.995: E/AndroidRuntime(19694): ... 8 more