I am using the Eclipse plugin for BlackBerry which is the simulator running in eclipse for debugging purposes. I have just figured out how to get it to debug, however one thing is consistent. I keep timing out when I try to flush the OutputStream. I have tried to use the deviceside=true which tells the simulator to connect to the internet directly, have tried using the proxy setting with MDS, however nothing works. Using the WTK from sun works fine, even with an address of localhost, but using my IP address to connect to my server from the simulator via Eclipse plugin or stand-alone simulator has been fruitless. I have spent a long time on this I don't seem to be making any progress. My steps are as follows:
Under the proxy settings with MDS
1) Open an HttpConnection w/URL
2) Set RequestProperties
3) Open DataOutputStream and write to it
4) Flush output stream (problem, it hangs)
Direct connection without MDS
1) Open an HttpConnection w/URL (problem.... it hangs)
I would greatly appreciate any advice as I have combed through most of the forum information so I believe I am doing most things right. I have even configured the MDS to make it simple and added the appropriate config parameters in the property file, but from what I have been reading on most post, using the simulator should be a slam dunk if you have internet connectivity. I am running this on an 1520 Ispiron laptop with 2g RAM. Again, using the WTK simulator works fine, it's just using the BlackBerry simulator has thus far been super frustrating as the simple things don't apprear to be working for me.
Thanks in advance for your help.