I am successfully running Bluetooth-SPP applications relying on http://bluecove.org/
That is Java to Java.
I do now want to establish Bluetooth-connectivity in an Adobe Flex-application. Anyone has experience, ideas?
I appreciate your advise.
Thank you
Bart
I don't know how you would pull this off in Flex.
For an AIR app, you should have a look at Merapi which is a AIR to java bridge. I haven't yet used it personally though.
Merapi Project link
hth
Koen
You will have to communicate via some sort of proxy. Create your proxy in java and make it listen on a port that flash/flex connects to -- you can use http requests, but it might be more fitting to use an xml socket.
Koen Weyn's suggestion of Merapi looks like a good one if you don't want to build it yourself (I've also never used it).
Related
Now, I have some problems here:
I looked several times in Google and so on, but I can't find an "easy" way to get this done. And currently having a migraine... not helping me... though
I have a java eclipse program (Swing application to be a "controller" for production-machines).
I need to design an Android app, which needs to take data from the eclipse program in a wireless network (and also send them back).
Just found solutions like JPARSON or setting up a real server, but that is way too complicated... i donĀ“t need?! (or want :D ) to set up a whole website with php or something...
Can someone of you help me out with a better solution? It doesn't need to be code-specific, I just want to exchange like 10 strings for these machines.
If you want to exchange data you need a communication medium. The easiest way to do this is via TCP/IP protocol suite. If you decide on having a Server-Client architecture, your serwer has to listen for what phones have to say. He can do this by listening on specified port and you would have to handle "protocol", or you can use somewhat easier approach which is to write php script, or Java Servlet. PHP script is easier becaouse there is like a gazzilion php hosting providers and it's cheap. If you would like to write your own serwer, you wold need some sort of Virtual Private Server, and deploy your app there. Plus it would be helpfull if you explained a little more your environment and what you are trying to achive.
There's built in httpserver http://docs.oracle.com/javase/6/docs/jre/api/net/httpserver/spec/index.html so you can easily implement a simple webservice in standalone java. Then just use URLConnection from android to post/get data, probably in json or your own format.
I am looking for some kind of tutorial which will help me make an application which would connect to the server on the computer and would respond as soon as the app is launched like would print out Hello World or something. I know one of doing this is bonjour programming but I am not really sure how I would connect to a server made in Java..So I am looking for some kind tutorial which would let me achieve this or if possible you could help me give a kick start....
thanks,
TC
This is from another discussion similar to yours. It might be able to help you
How can I connect iPhone and web service and get XML data?
If your server returns XML and your iPhone app parses it and creates/populates views based on it then it should not matter what language your server is using,
i am developing a project in which the client and server should communicate asynchronously after ensuring the security.i made all the coding that is required to authenticate a client now it's the turn for communication. My mind is blank can anyone suggest me how to develop it... another thing is server is in j2se and client in j2me..
plz guys my project is based upon your responses help me
See this discussion on nokia forum and existing discussion on same in this forum. Here also discussed on same topic. It may be useful for you. :)
Find an implementation of XMPP and have most of your work done for you...
Please help me in getting started with XMPP as i am going to start working on a Java project soon and I will be implementing this protocol. I need to get started soon but couldnt find enough resources online. Please suggest few things like : giving input to the server and then receiving the msg back, communication with the ISB and client-xmpp-xlient. Thanks!
I would use an existing Java implementation. Check out SMACK. If it fits your licensing needs, then I would use something like that before writing all the code yourself.
A simple example of using XMPP here using Smack API
raj
I have an application that was written in Java and runs on the users machine. I now want to build an application on the iPhone which will communicate with my java app.
Can somebody point me in the right direction on how I can send and receive TCP packets with the iPhone, I want to of course be able to do that using wifi and 3G.
Thanks,
You use the NSStream classes. I've found it pretty easy to use.
See the SimpleNetworkStreams for an example.
One problem I found is that the iphone sdk does not include the NSStream method getStreamsToHost:port:inputStream:outputStream: which is what Mac OS examples use to open a NStream connection but there are lots of places that show you how to create your own like here.