?
Solved

message is it ok to use Network

Posted on 2008-10-16
2
Medium Priority
?
813 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
[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
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses
Course of the Month8 days, 20 hours left to enroll

765 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