How to connect to bluetooth device in Java?

Connect to bluetooth device with Android/Java

  • I'm trying to make an android app that will connect to a device that I have that I suspect uses bluetooth frequencies. However, it seems that all the constructors in the android.bluetooth package are private. Does anyone have any experience they can share with me? As a note, yes I've already looked at the API. I think I know what to use, but, again, I can't call any of the constructors of any of the classes.

  • Answer:

    Have you taken a close look at the BluetoothChat example provided? This will show you how to scan for and connect to bluetooth devices as well as how to use the API to do so. http://developer.android.com/resources/samples/BluetoothChat/index.html

Supuhstar at Stack Overflow Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.