title: Need to make Bluetooth chat sample application work on my Galaxy S3 or HTC EVO 4G
body: <p>When I create a new BlueToothChat project on Eclipse, it compiles perfectly fine and I can then download it into my Galaxy S3 (running Android 4.1.1). If the BT is disabled, it asks for it to be enabled. When I do, the app goes in and then collapses with:</p>
  
  <pre><code>02-06 13:40:52.959: E/AndroidRuntime(25405): FATAL EXCEPTION: main
  02-06 13:40:52.959: E/AndroidRuntime(25405): java.lang.NoSuchMethodError: com.example.android.BluetoothChat.BluetoothChat.getActionBar
  02-06 13:40:52.959: E/AndroidRuntime(25405):    at com.example.android.BluetoothChat.BluetoothChat.setStatus(BluetoothChat.java:234)
  02-06 13:40:52.959: E/AndroidRuntime(25405):    at com.example.android.BluetoothChat.BluetoothChat.access$4(BluetoothChat.java:233)
  02-06 13:40:52.959: E/AndroidRuntime(25405):    at com.example.android.BluetoothChat.BluetoothChat$2.handleMessage(BluetoothChat.java:260)
  02-06 13:40:52.959: E/AndroidRuntime(25405):    at android.os.Handler.dispatchMessage(Handler.java:99)
  02-06 13:40:52.959: E/AndroidRuntime(25405):    at android.os.Looper.loop(Looper.java:150)
  02-06 13:40:52.959: E/AndroidRuntime(25405):    at android.app.ActivityThread.main(ActivityThread.java:4263)
  02-06 13:40:52.959: E/AndroidRuntime(25405):    at java.lang.reflect.Method.invokeNative(Native Method)
  02-06 13:40:52.959: E/AndroidRuntime(25405):    at java.lang.reflect.Method.invoke(Method.java:507)
  02-06 13:40:52.959: E/AndroidRuntime(25405):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
  02-06 13:40:52.959: E/AndroidRuntime(25405):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
  02-06 13:40:52.959: E/AndroidRuntime(25405):    at dalvik.system.NativeStart.main(Native Method)
  </code></pre>
  
  <p>I then repeated the exact same test with an HTC EVO 4G running Android 2.3.5. Exact same problem!</p>
  
  <p>I already found this question but the answer is no good. The explanation is that apparently the getActionBar() call generates a NULL. I tried both suggested solutions, but none of them solve the problem. Kind of annoying that a sample application, which is supposed to be flawless, doesn't work!</p>
  
  <p>Any other suggestion on how to make the BlueTooth Chat Application work? I need to send serial data to an application and found a nice tutorial pretty much using this application, but kind of useless if the app collapses on different platforms. Thanks for any input you may be able to provide!</p>