| Reply | « Previous Thread | Next Thread » |
|
hello all,
I am opening the connection in commandAction method of Midlet then follwing warning comes and porgram terminates.. Warning: To avoid potential deadlock, operations that may block, such as networking, should be performed in a different thread than the commandAction() handler. |
| acceltree_pune |
| View Public Profile |
| Find all posts by acceltree_pune |
|
Just do it!
class MyConnector implements Runnable { ... // better start this Thread at once and just notify it by the actionCommand Besides: what is the commandAction for? Nokia phones do know a keyCode for any key (thx to Nokia). So consuming the keyEvent by [Canvas] protected void keyReleased (int code) { ... will ease a lot up, because keyReleased isn't wrapped in a Thread. So there's no need for multithreading, that means, you can start your connection thread on demand. |
|
see, There is restriction for that, if you are going to establish HTTPConnection.
query should be in a separate thread... for Code, search engine can help you to get the idea. |
| aminuddin09 |
| View Public Profile |
| Find all posts by aminuddin09 |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| How to keep Socket connection open for a time | barre30 | Mobile Java Networking & Messaging & Security | 0 | 2004-07-22 10:31 |
| Problem: RGenericAgent::Progress does not detect open connection | bjorn.rudolfsson | Symbian Networking & Messaging | 1 | 2004-02-18 09:59 |
| Open connection to the right virtual server | MrPatol | Mobile Java Networking & Messaging & Security | 0 | 2003-11-21 22:21 |
| playing sounds on 9210 while data connection is open | andywein | General Symbian C++ | 1 | 2002-09-28 20:05 |
| open and close connection in the MMS Library | cmingoia | General Messaging | 1 | 2002-09-17 11:54 |