Solved

message is it ok to use Network

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
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…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

757 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now