how to write a chat program just like gtalk or yahoo - java

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...

Related

How to create a server for Android app which receive and transmit data to my application without socket?

I want to create a java server application which receives data from an Android client and also transmit notification to client. Actually i did not know much about server apps. I am quite familiar with servlets and mysql, is there any tutorials based on these??
So any suggestion how to build it or any tutorials for it?? please help me!
What you are probably looking for is Google App Engine a SaaS by Google. While there are many alternatives this is probably the best route you can take for implementing a Java based backend. Follow these tutorials* and you'll be good to go. Keep in mind the GAE is a bit complicated and will take some time to get on your feet.
https://cloud.google.com/appengine/docs/java
More tutorials on GAE can be found by a nice google search!

iPhone - java networking service?

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,

Device to Device Communication in Android

I have been tasked for university to program a mobile phone application. I have oppted for two mobiles to communicate with each other via message.
I would like the application to connect the mobile to the internet to send the message and the other mobile to connect to the internet to recieve the message.
I am using Eclipse IDE.
Does anyone have any ideas for good examples of similar application source code so I can develop my application using appropriate protocols.
I would appreciate any advice and I am certainly not looking for someone to give me "the answer" I am really looking forward to getting stuck in. Though I have never touched an android phone let alone programed one. So some advice would be amazing!!
Thanks
Si
Get used to this site: http://developer.android.com/index.html Learn it, love it. It's full of useful information. The Videos section gives plenty of live talks about what exactly Android is among other topics. One of the first things you need to do is go to the SDK section. It gives a detailed guide on how to get setup. The Dev Guide is great for learning more about Android and how to program Android apps (not just Java programs) especially while just getting started. Resources is full of code examples and articles on specific issues and Reference is the entire platform documentation. #Matthew Willis has already given a helpful link from the Dev Guide.
Look around the site, download and install the SDK, and come back whenever you have any questions. Good Luck!
Before you determine the technical solution you need to figure out how any two devices that don't know about each other will communicate.
In your case, where you seem to be attempting to develop some kind of peer-to-peer solution you most probably will need some kind of server in between where your phones send messages to and poll for messages.
If you are using WIFI, you would have each phones IP address and could configure each phone to communicate with each other directly.
Once you determine your architecture then something simple like http may be enough to communicate.
You might check out What is Android? to get an idea of the frameworks/libraries that are available on Android. Reading the links in the left pane at that site lead you through a nice series of articles about Android.
In terms of ways for two devices to communicate, they are many and difficult to enumerate. In general you will have much better luck with specific questions here than you will with broad questions.
You might be interested in reading about C2DM for pushing messages to a device; if not, there are many other alternatives involving polling.
GCM CSS is probably your best bet
https://developer.android.com/google/gcm/ccs.html

XMPP starter - with java

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

Bluetooth SPP from Adobe Actionscript (Flex Framework), how?

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).

Categories

Resources