• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to connect the mobile device to server

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys
I have a simple question to ask you. It might be a
little stupid but I really have no idea. Right now I
have developed midlet application by using J2ME by
using Tomcat to be servlet/jsp web container. I'm just
wondering that after I download the midlet to my cell
phone or PDA. How can I connect those device to the
server(for example, www.server.com). Where do I put
the server URL? (which actually i already wrote it in
the midlet program). Or we have to use dial up and
connect to the server by the phone number?
Thanks in advance if you can help me about this.
 
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You just use the standard HTTP connection to connect to the server at whatever address your servlet is running.
The following snippet of code shows the gist, although I haven't shown all the declarations.

There are a heap of good articles/examples at http://wireless.java.sun.com which should help.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I know a little about how to connect server in cell phone.
In fact ,there is no way to connect the server in your mobile phone whithout the support of telecom carriers.
The server is in internet,and your cellphone can only connect to mobile network that it belong to.
so, it must have a gateway that is responsible for transferring the information from your phone to sever.
this is the carriers work.
 
Ranch Hand
Posts: 2676
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
morningwind,
JavaRanch has a naming policy which is strictly enforced. Please read the policy and change your display name if you wish to continue posting here.
You can change your name: here
 
udsana ratana
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys
Thanks a lot for all suggestion. So that means it will be based on which network (phone company) we are belonged to, right? So if we have a cellphone, say Nokia and then we just pay for the service fee, and the phone model is java-enabled. So we should be able to type the URL that will get the servlet or connect to the server of each midlet application. Sth like that?
Udsanee

Originally posted by morningwind:
I know a little about how to connect server in cell phone.
In fact ,there is no way to connect the server in your mobile phone whithout the support of telecom carriers.
The server is in internet,and your cellphone can only connect to mobile network that it belong to.
so, it must have a gateway that is responsible for transferring the information from your phone to sever.
this is the carriers work.

reply
    Bookmark Topic Watch Topic
  • New Topic