[android-developers] Re: How to send a photo over Bluetooth

2010-07-01 Thread Gorka
Ups, there is the "available" function. I was reading the wrong API, xD. On 1 jul, 08:44, Gorka wrote: > Hi, > > Thank you, it seems that is exactly what I wanted. I have not tested > it but apparently it works. By the way, I saw there is not an specific > function defined by the FileInputStream

[android-developers] Re: How to send a photo over Bluetooth

2010-06-30 Thread Gorka
Hi, Thank you, it seems that is exactly what I wanted. I have not tested it but apparently it works. By the way, I saw there is not an specific function defined by the FileInputStream class to know the number of bytes of the picture; do you know how can I get this value. I mean, I am using this co

[android-developers] Re: How to send a photo over Bluetooth

2010-06-29 Thread Naoto
Hi, I happened to have written something similar just recently. How about just opening the file with FileInputStream and use read() to read out the byte[]? On the receiver end, you just write() with FileOutputStream. Or did you just want to send the pixel data from memory to memory? I hope thi

[android-developers] Re: How to send a photo over Bluetooth

2010-06-29 Thread Gorka
I am sorry that I forgot to say that the photos are in JPEG format On 29 jun, 09:26, Gorka wrote: > Hello, > > I am trying to send a photo from my Android device to a laptop via > Bluetooth. Right now I have a gallery on the screen where the photos > are depicted. What I want to do is to click a