Forums Login/signup

Android studio: Send / receive inputstream between devices

+Pie Number of slices to send: Send
I have followed some Youtube tutorials on this (https://www.youtube.com/watch?v=5M4o5dGigbY), but how to actually send the inputstream to the remote device? How to receive it on the remote device? The way I try it, the inputstream is empty on remote device. The following code is how far I got, but I am not stating it is OK. Also, the remote device is getting the following output on Logcat:




This is some of the code:

reply
reply
This thread has been viewed 2444 times.
Similar Threads
Problem with socket code, always fails to connect to Bluetooth device
Server cannot show string
Bluetooth blues (stream related I believe)
Android Java P2P File Sharing
App Bluetooth Lags
More...

All times above are in ranch (not your local) time.
The current ranch time is
Jun 30, 2025 11:28:51.