Solved

message is it ok to use Network

Posted on 2008-10-16
2
799 Views
Last Modified: 2013-11-24
While am developing midlets if I wont to connect to sip server or use the network
Am receiving this message is it ok to use network its says also your midlet wont to
Send and receive data using the network how I can remove this message I don't
Wont to get it because it always give that error and not working at all :

Warning: To avoid potential deadlock, operations that may block, such as
 networking, should be performed in a different thread than the
 commandAction() handler.

0
Comment
Question by:deniro1974
  • 2
2 Comments
 
LVL 6

Accepted Solution

by:
CodeFish earned 500 total points
ID: 22772623
Requests for network access may be unavoidable unless you sign the midlet. Signing is convoluted and can be costly. Unsigned midlets tend to nag the user every time something is saved or the network is accessed. Sometimes they won't function at all. It all depends on the type of phone.
You should not put a commandListener inside of a thread with networking. The thread should only contain your networking components. Thai way the user cancel a networking operation if it takes too long.
0
 
LVL 6

Expert Comment

by:CodeFish
ID: 22772650
Sorry, the last line should read, "That way the user can cancel a network connection if it takes too long."
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
split53 challenge 7 99
eclipse shortcuts 9 56
diffSum example 4 37
hibernate example issues from command prompt 10 42
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

832 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