Solved

message is it ok to use Network

Posted on 2008-10-16
2
801 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
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…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This video teaches viewers about errors in exception handling.

856 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