02-01-2012 11:24 AM
I am developing a Blackberry application that needs to communicate (sync) with an exisiting Java desktop application over a WiFi network. I have been looking into using JSON messaging to handle the communication between the two apps, but I'm not sure how to go about setting up the initial connection (i.e. sockets?). I'm hoping that someone can point me in the right direction?
Solved! Go to Solution.
02-01-2012 11:40 AM
02-01-2012 12:23 PM
Simon is right that one party is going to need to tell the other how to find it (i.e. its IP address).
Given that you have this, then you need to have some processing on your PC that can handle receiving requests from the BB and/or pushing requests to the BB. Typically BB's will use http communication with a Web Server. In this case, I'm guessing you don't want to run a full Web Server, in which case a socket connection would seem like the best option - so the BB would talk directly to your desktop application. There is, included with the tooling you have a SocketDemo which will probably have most of the coding that you need. So have a look at that.