由于ArrayAdapter,蓝牙应用程序崩溃需要资源ID为TextView

时间:2015-12-28 07:48:34

标签: android bluetooth

您好我尝试使用蓝牙代码示例连接我的蓝牙设备。但在说它与蓝牙连接后,应用程序崩溃了。这是错误:

2-28 15:30:54.550    8431-8431/course.examples.healthapp E/ArrayAdapter? You must supply a resource ID for a TextView
12-28 15:30:54.560    8431-8431/course.examples.healthapp D/AndroidRuntime? Shutting down VM
12-28 15:30:54.560    8431-8431/course.examples.healthapp E/AndroidRuntime? FATAL EXCEPTION: main
    Process: course.examples.healthapp, PID: 8431
    java.lang.IllegalStateException: ArrayAdapter requires the resource ID to be a TextView

以下是我的源文件(Dropbox):

Bluetooth Data display

Bluetooth Service

Device list

0 个答案:

没有答案