Thats great jimmack;
A few more questions(really silly ones):
Is there any eviroment I can test solutions for? (ie is there a way i can test for Nokia & Siemens Phones?
How does J2ME send a SMS message from the website to the users phone?
Do all phones I intend to deploy the solution have to support WAP?
Main Topics
Browse All Topics





by: jimmackPosted on 2004-01-07 at 05:58:55ID: 10061749
>> Can this be done with J2ME.
.4.2/downl oad.html). You'll also need the J2ME Wireless Toolkit (J2MEWTK) - http://java.sun.com/produc ts/j2mewto olkit/down load-2_0.h tml. Finally, you'll need an editor or IDE to let you write your Java code.
Yes it can be done with J2ME, but only with MIDP-2.0 (which is only implemented on the newest phones).
>> How? and what tools do I need?
You need to create a MIDP-2.0 MIDlet. In order to do this, you'll need the standard Java Development Kit (JDK) from Sun (the latest version - 1.4.2 - should do http://java.sun.com/j2se/1
>> How do I get the J2ME application from the website to a remote user?
When you build a J2ME application, you get two files, a .JAD file (Java Application Descriptor) and a .JAR file (Java Archive). You need a WAP page that has a simple "<a href=..." link pointing to the .jad file. (Some phones support a direct link to the .JAR, but don't count on it).
>> How will be able to recieve replies to the website?
To *receive* an SMS from the website, you'll need to set up the push parameters for the MIDlet.
To *send* a response back to the website, you'll need to create an HttpConnection and then just use a URL like you would from a web browser (GET and POST are both supported).
>> Are there any issues with regards firewalls that I should be aware of?
Not that I can think of. Firewall issues should only really be relevant when the client is using a web browser from behind a firewall. Your clients will be using a phone for their connection.