Problem with OpenStream

Problems with WiFi, SQLite ,Bluetooth, WiMax, Proxies, etc...

Problem with OpenStream

Postby parimalraj2000 » Tue Feb 03, 2009 11:07 am

Hi All,
I am trying to open an interent connection with the following code snippet:

URL url = new URL(url_str);
InputStream is = url.openStream();

I have given persmission for internet in the manifest file.
<uses-permission android:name="android.permission.INTERNET" />

This code is working fine in emulator.
Buit whenever I am trying to run it in actual Device, the code is crashing with out giving any exceptions.

Can anyone please help me solving this problem?
Junior Developer
Junior Developer
Posts: 18
Joined: Tue Nov 04, 2008 10:01 am


Return to Networking & Database Problems

Who is online

Users browsing this forum: No registered users and 5 guests