Jump to content
  • Advertisement
Sign in to follow this  
_nomad_

programming gprs in j2me

This topic is 5034 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
hi, sorry for the vague question....

i wanted to know how to make a PC / server communicate with a j2me device...i think i should use sockets? but midp 1.0 devices don't officially support sockets...but i have a phone that has an option that says gprs, so i'm thinking this could be a replacement for sockets? or is my understanding wrong?

sorry for the poor english.

thanks in advance for whoever will help. :)

Share this post


Link to post
Share on other sites
In J2ME the communication specifics are hidden away from the developer. You get a high level API, and the virtual machine takes care of all the details needed to make the connections (or to let you know that what you are trying isn't supported by throwing an exception).
Look at the javax.microedition.io.* package. There you can find all the classes you will need to perform the connection to servers. You're right about MIDP not having mandatory support for sockets. The only thing guaranteed to be supported is http. So you can start out by making HttpConnections. If the phone is a gprs phone then it will open those connections through gprs. Even though it isn't mandatory, many phones do support sockets. So it doesn't hurt to try opening a socket connection either.

shmoove

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!