This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Java Micro Edition and the fly likes communication between pc and mobile Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "communication between pc and mobile" Watch "communication between pc and mobile" New topic

communication between pc and mobile

Ajeesh Moidutty

Joined: May 18, 2006
Posts: 22
i need to develop a j2me app to communicate(simple chat) so that i
can chat with my pc through a java app on my system.

Can you tell mw how to make this possible?
Nicholas Jordan
Ranch Hand

Joined: Sep 17, 2006
Posts: 1282
Write both sides in Java, use the javax.bluetooth package.

"The differential equations that describe dynamic interactions of power generators are similar to that of the gravitational interplay among celestial bodies, which is chaotic in nature."
vasa kinnar

Joined: Sep 26, 2007
Posts: 1
First you have to develop the device discovery and device search program and using this, you can search the device and then you can do the chatting between them.

Fist develop device discovery program which will search device available currently with bluetooth on.

and then search service availabe for that device.

This work you have to do just. After that it is easy to chat between them
Husam Haddad

Joined: Feb 20, 2008
Posts: 5
Dear all,
It is doable, but you should be carefull about the server side, if you want to use J2SE application in sever side , you should use the socket connection, otherwise if you want to use J2EE app like Servlet, you should use the Http connection and don't worry about the connections because the J2ME supports the both connections, but you should use the GPRS or WiFi (if device supports) to connect to server.

[ February 20, 2008: Message edited by: Husam Haddad ]
[ February 20, 2008: Message edited by: Husam Haddad ]

The programming is art
SJCP 83%, SCWCD 89%
Gjorgi Var
Ranch Hand

Joined: Feb 24, 2004
Posts: 85
I was on a brink to open a new topic with almost the same question...
1. Any good tutorial you've seen lately on java bluetooth connection with cellphone?
2. Would like to take that communication further and use the mobile's phone line for IVR and music-on-hold. Anybody done that in Java? Any helpful tutorial on such a topic?
Austin Lee
Ranch Hand

Joined: Feb 18, 2008
Posts: 56
The simplest way is using the blubooth.
But if you need a stable solution, use the pc as a server.
I agree. Here's the link:
subject: communication between pc and mobile
It's not a secret anymore!