0

Hi I trying to connect my bluetooth device using the bluetooth code sample. But after it said connected with bluetooth then the app crashed. Here are the error:

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

Here are my source files (Dropbox):

Bluetooth Data display

Bluetooth Service

Device list

Marek Sebera
  • 39,650
  • 37
  • 158
  • 244
Spotty
  • 197
  • 2
  • 2
  • 14

0 Answers0