This is what inside my ADF file : UseNetwork = http
LastModified = Wed, 30 Jul 2003 14:11:56
ConfigurationVer = CLDC-1.0
AppClass = browser.Browser
AppName = browser
PackageURL = bin/browser.jar
AppSize = 1196 and the following is part of my code : try{
HttpConnection hc = (HttpConnection)Connector.open
("http://www.yourdomain.com/data.txt",Connector.READ,true[1]);
/*** This causes the security exception ***/
hc.setRequestMethod(HttpConnection.GET);
hc.connect();
InputStream is = hc.openInputStream(); byte[]
text=new byte[(int)hc.getLength()]; is.read(text);
String s = new String(text);
extractedText = s;
is.close();
hc.close(); } catch(Exception e) { System.out.println (e); }
What other network connection do i need to enable in the Emulator apart from
the ADF ? Thanks, Ceci
----------------------------------------------------------------------------
Hotmail now available on Australian mobile phones. Click here for more.[2]
--- Links ---
1 'http://www.yourdomain.com/data.txt",Connector.READ,true'
2 http://g.msn.com/8HMEENAU/2728??PS=
Received on Wed Jul 30 10:22:54 2003