Seems that the Bluetooth API only allows p2p apps that both client and
server has the same UUID:

"The string is an identifiable name of your service, which the system
will automatically write to a new Service Discovery Protocol (SDP)
database entry on the device (the name is arbitrary and can simply be
your application name). The UUID is also included in the SDP entry and
will be the basis for the connection agreement with the client device.
That is, when the client attempts to connect with this device, it will
carry a UUID that uniquely identifies the service with which it wants
to connect. These UUIDs must match in order for the connection to be
accepted (in the next step)." - 
http://developer.android.com/guide/topics/wireless/bluetooth.html

On 30 dez 2009, 03:30, prabhu <[email protected]> wrote:
> I want to implement an application which can successfully transfer a
> file from my android eclair device to any otherbluetoothdevice.
>
> After device discovery and pairing, I'm trying to connect with a
> remotebluetoothdevice using:
>
> BluetoothSocket socket =
> mbluetoothdevice.createrfcommsockettoservicerecord(uuid);
> I'm explicitly specifying the uuid for Object push like,
> UUID uuid = UUID.fromstring("00001105-0000-1000-8000-00805F9B34FB");
> once i try, socket.connect();
> I receive BluetoothSocket.ACL_CONNECTED intent, and two or more
> android.bleutooth.extra.UUID intents,
> later the connection is shutting off immediately.
> Even I'm trying to use outputstream.write(int); to transfer the data,
> but it's not working well for me.
>
> Please if anybody know the solutions, kindly help me out,
> mail me at [email protected] or post back here please...
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to