[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

message is it ok to use Network

Posted on 2008-10-16
2
Medium Priority
?
818 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 1500 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

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

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

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
The viewer will learn how to implement Singleton Design Pattern in Java.
Suggested Courses
Course of the Month18 days, 21 hours left to enroll

834 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