Questions tagged [bluetooth-socket]
45 questions
0
votes
2 answers
Input Stream Issue
stuck in One Issue ,
I am using BluetoothSocket class, I am sending and receiving data with the help of input and output streams.
when App receives large amount of data from input stream, I am killing my app forcefully and after it I am again…

Roshni Talreja
- 17
- 10
0
votes
0 answers
How to create a Bluetooth Server Socket Connection inside a bluetooth BroadcastReceiver in Android?
The context is the following, I have an Android App that launch an activity when a specific device connects to it, and send a code message. The device is not another android app, in such case the problem would be much easier. The device is an IoT…

Mauricio Pastorini
- 762
- 2
- 11
- 24
0
votes
2 answers
message not received in Bluetooth chat. Is my handler broken?
I am working on the project on the android dev. the website for BluetoothChat and it seems to be sending messages correctly but not receiving them. In the past,
I attempted to create another Bluetooth app and when connecting to a device I was…

Mox_z
- 501
- 7
- 30
0
votes
2 answers
Bluetooth socket wrong signal size
I'm coding an app with Master-Slave design for Bluetooth on Android. Master in piconet can have up to 7 active slaves. I've read Android Bluetooth dev guide and BluetoothSocket.java source code, however there is no maximum number of slaves…

tmowojtek
- 43
- 1
- 3
- 7
0
votes
0 answers
How do I close any previous Bluetooth sockets after my app starts?
In my app, I open and close a Bluetooth socket on the same device each session and listen for data. When I close one, I make sure to close the input and output streams and then socket in a cancel method. Still, for some people the app keeps trying…

Questioner
- 2,451
- 4
- 29
- 50
0
votes
1 answer
Bluetooth socket won't connect always resulting IOException
In my application i am detecting Beacons using some libraries after finding the right beacon am using its name to find another Bluetooth device (Android Device 5.0) and then trying to connect to the phone by Bluetooth using the methods and classes…

Mohammad Haidar
- 1,109
- 1
- 16
- 35
0
votes
1 answer
How to ensure all data is sent before closing Android BluetoothSocket
I am making an android app that will communicate between phones via bluetooth. In order to save battery, I would like to refrain from keeping a bluetooth connection open all the time. So each time I'm going to send a message, I open up a connection,…

MagicGuy52
- 571
- 1
- 6
- 11
0
votes
1 answer
RPi 3 Python Script - NameError: name 'BluetoothSocket' is not defined
So I am relatively new to python scripting and I came across this code that is supposed to configure wifi over bluetooth between a raspberry pi and smart device. Unfortunately, I keep running into the error listed in the title. I was hoping someone…

syrj2112
- 1
- 2
0
votes
1 answer
In documentation, why is BluetoothServerSocket.accept() called in a while loop if it blocks the thread anyway?
In the android documentation, the following code occurs in the run() segment of a thread:
BluetoothSocket socket = null;
// Keep listening until exception occurs or a socket is returned
while (true) {
try {
…

Userrrrrrrrr
- 183
- 3
- 12
0
votes
1 answer
got an error in below accept thread code after reading all data still it gives error socket closed read return -1
I needed some guidence for streaming to transfer file or data with the remote devices or server. Help me to find what happening in that code just stucked from last 5 days with this error:
W/System.err: java.io.IOException: bt socket closed, read…

ashish raval
- 55
- 1
- 7
0
votes
2 answers
How to send string message via Bluetooth in Android?
I'am trying to send simple string message via bluetooth to another device. My code looks like this:
private ICollection devicesArray;
private void SendBtn_Click(object sender, EventArgs e)
{
BluetoothDevice bd = null;
…

Shagohad
- 365
- 1
- 7
- 23
0
votes
1 answer
Understanding bluetooth rfcoom raw data
I'm trying to build an application that reads information sent on a bluetooth service using rfcomm.
The device is an hardness tester (HT-6510A), unfortunalty specs about the device data format can't be found I'm faced with a strange problem, I've…

Pievis
- 1,954
- 1
- 22
- 42
0
votes
0 answers
Error cordova build with org.chromium.bluetoothsocket plugin
I get a build error after adding the plugin org.chromium.bluetoothsocket:
BUILD FAILED
C:\Program Files\Android\android-sdk\tools\ant\build.xml:720: The following erro
r occurred while executing this line:
C:\Program…

Yuri
- 11
- 1
0
votes
1 answer
Android bluetooth send int array
I need to send an int array in android through Bluetooth it was allowing to send as one by one int only. So is there any way to send complete int array at a time.
There is a possibility to send byte array but I dont want to convert to byte . As my…

user1080280
- 11
- 5
-2
votes
1 answer
Why does my Android App crash if Bluetooth Socket is not available?
i programming an app, that gets sensor data from arduino via bluetooth.
Everything is working as long the Bluetooth Socket is available.
If I switch off arduino and try to open the app then my app crash.
public class GetData extends Activity {
…

Steinfeld
- 75
- 1
- 2
- 13