Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Java Micro Edition and the fly likes Warning:To avoid deadlock,networking,...perform in a different thread than commandAction() handler Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Warning:To avoid deadlock,networking,...perform in a different thread than commandAction() handler" Watch "Warning:To avoid deadlock,networking,...perform in a different thread than commandAction() handler" New topic
Author

Warning:To avoid deadlock,networking,...perform in a different thread than commandAction() handler

Chanakya Gupta
Ranch Hand

Joined: May 23, 2010
Posts: 34

Am a newbie to J2ME, why are we getting this warning and
the MIDlet is hanging at "Is it OK to use airtime?"

Can some one pl help,

commandAction() to run in separate thread ?
What does that mean ?


SCJP6, SCWCD5, SCMAD
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15957
    
  19

I can understand why an "OK to use airtime" dialog would pop up. A lot of service providers charge extra for digital services, and so the OS asks permission to protect the user against unexpected additions to the phone bill - especially since there are exploits that specifically try and make secret connections to expensive places.


Customer surveys are for companies who didn't pay proper attention to begin with.
Chanakya Gupta
Ranch Hand

Joined: May 23, 2010
Posts: 34

Thank you Tim for your time and answer !
 
 
subject: Warning:To avoid deadlock,networking,...perform in a different thread than commandAction() handler
 
Similar Threads
How to invoke the MIDlet ?
Error "Blocking call performed in the event thread"
Multithreading problems in J2ME
Problem in Connecting Application on J2ME WT Emulator with Servlet on Tomcat
j2me/ksoap error