Eclipse plugin Simulator - how to set up the network

Hi I installed Blackberry JDE Eclipse plug-in successfully. My test app works fine on Simulator until he tried to open an HTTP connection to a URL (a real web address like www.google.comor localhost):

Here's the code I used:

S StreamConnection = null;
Try

{

s = (StreamConnection) Connector.open (getUrl ());

HttpConnection httpConn s = (HttpConnection);

State int = httpConn.getResponseCode ();

...

}

So my question is how to set up the simulator so that it can open the connection to the network.

Of BlackBerry MDS Simulator is packaged and installed with the plugin Eclipse and can also be downloaded separately if necessary. You can configure to start the MDS Simulator with your simulator of aircraft in debug/run dialog box. For more information about these steps, see the Eclipse plug-in for the next topic test a BlackBerry Application that uses an HTTP connection.

To understand the parameter deviceside and information about network gateways, see the following resources:

DB-00396: that is - different ways to establish an HTTP connection or socket
http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800451/800563/What_Is...

Video of transport network:

http://NA.BlackBerry.com/eng/developers/resources/VideoLibrary.jsp#tab_ddetail_subtab_jde

On BlackBerry's wireless data Transport Management - Part 1

http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe?func=LL&objid=832210&objAction=browse&s...

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for