I'm trying to figure out how to make a J2ME App that sends an image to another phone (just like the phone does natively). I mean without the Client - Server paradigm. In other words, no Server.
I've programmed a J2ME bluetooth midlet that sends an image to another device. This midlet successfully sends the image to a sony ericsson phone from my Nokia E71. I do a device discovery, get the address and then I set the channel to 4 like this:
String adr = "btgoep://" + deviceAddress + ":4";
I'm using aventanaobex to set up the connection and to send the image.
BUT when I try sending the same image in the same channel to another phone (for example, a Nokia N73) it fails. This happens with others phones too. It won't do a thing. If I change the channel, it does ask for permission to send, however, nothing is sent.
So my First question is: 1) how do I get the channels? Does every phone has its own channel to transmit the image?
I also used Device Search with bluetooth after finding a device. But It won't find any service at all (I'm looking for 0x1105 - obex push).
My second question would be: 2) Is there an alternative way to implement this server-less app with/without obex? Maybe it would be by finding services first?
thanks in advance!