?
Solved

J2ME Client

Posted on 2003-03-19
9
Medium Priority
?
229 Views
Last Modified: 2013-11-23
I would like to write IRC client for Nokia 7650.

I already made IRC client for windows.

Now all i want to know is how to connect to
one host, send data to that host and how to read
answer from host.

Example:
- i want to connect to host "irc.something.com:6667"
- i want to send some data to that host
- i want to recive answer
Could you tell me how, please?

Thank you for your answers...
0
Comment
Question by:ezicoder
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
9 Comments
 
LVL 35

Expert Comment

by:TimYates
ID: 8165378
From http://www.forum.nokia.com/main/1,35452,1_0_20,00.html

Q25. Can I use sockets in my application in Nokia devices?
Not at the moment. Nokia's current MIDP implementations are based on MIDP 1.0 specification, which does not support Sockets. The only supported connection type is HTTP. Support for a lower-level network API such as Socket is under consideration for a later version of the MIDP specification, perhaps in MIDP 2.0.
0
 
LVL 35

Accepted Solution

by:
girionis earned 1000 total points
ID: 8165399
> - i want to connect to host "irc.something.com:6667"

  You have to use: Connector.open("socket://irc.something.com:6667");

> - i want to send some data to that host
> - i want to recive answer

  You have to use OutputStream/DataOutputStream and InputStream/DataInputStream to do it.

  You can find some nice tutorials here:

http://www.informit.com/isapi/product_id~%7B4CDB188A-006B-4C93-8695-577753CA5993%7D/element_id~%7BAACD7327-4988-496D-9829-B2C17C00EA79%7D/st~%7B8D7D66D7-6E9F-475E-905C-4AA4EBC5CADC%7D/content/articlex.asp
http://www.wirelessdevnet.com/channels/java/features/j2me_http.phtml
http://www-106.ibm.com/developerworks/wireless/library/wi-jio/


  amd for more information on J2ME applications look here:

http://www-106.ibm.com/search/searchResults.jsp?searchType=1&searchSite=dW&query=j2me+network&searchScope=dW
0
 
LVL 35

Expert Comment

by:TimYates
ID: 8165470
So is the Nokia FAQ wrong?

I hate their site :-(
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 35

Expert Comment

by:TimYates
ID: 8165485
Errr...

4. What kind of Java implementations do Nokia phones support?

Nokia Java phones launched in CeBit/CTIA, and also the Nokia 7650 imaging phone that was launched earlier, support J2ME. Nokia's J2ME implementation consists of the industry standard MIDP 1.0 and CLDC 1.0. The platform is extended by the Nokia User Interface (UI) API. It gives application developers access to certain basic phone functionality that is not specified by CLDC 1.0 or MIDP 1.0. The Nokia UI API provides access to simple audio capabilities, vibration, display lighting, as well as some graphics-related enhancements. The functionality now included in Nokia UI API is currently being specified in the MIDP 2.0 expert group. Nokia's plan is to converge with the MIDP 2.0 specification when it is finalized.

And the javax.microedition.io package is part of MIDP 2.0
0
 
LVL 35

Expert Comment

by:TimYates
ID: 8165486
So I guess it all depends on whether you can get your 7650 upgraded to MIDP 2.0...
0
 
LVL 35

Expert Comment

by:girionis
ID: 8165510
 Hmm.. not sure, I only used Motorola ones with J2ME. Tbh I did not pay attention to the Nokia 7650 statement by  ezicoder so I could be wrong. Maybe ezicoder can give us some more input on the phone and profile he is using?
0
 

Author Comment

by:ezicoder
ID: 8172383
Thank you very much!

Regards, ToMaS
0
 
LVL 35

Expert Comment

by:girionis
ID: 8172639
 Thank you for the points. I am glad I helped :-)
0
 
LVL 35

Expert Comment

by:TimYates
ID: 8172846
Bah...bet it doesn't work on his Nokia 7650 ;-P
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Suggested Courses

718 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question