help me...
Warning: To avoid potential deadlock, operations that may block, such as
networking, should be performed in a different thread than the
commandAction() handler.
help me...
Warning: To avoid potential deadlock, operations that may block, such as
networking, should be performed in a different thread than the
commandAction() handler.
perform the networking action in separate thread rather than in command listener for this create a new thread and start it and paste your code in it for accessing network resource and in command action handler start this thread
Regards,
Saurabh
This means that you are trying to do any blocking operation like access to RMS, PIM or network call from main CommandAction() handler methods which are blocking the midlets main thread.
Solution - what ever process you want to do from Command action that can be considered as blocking operation (like calling RMS data, reading files, PIM, or HTTP based network calls etc) should be writen in a seperate Thread and this thread should be just started from your CommandAction() handler method to get the operation done.
thanks,
~Amitabh
Follow me on my blog for Innovative Mobile Apps