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?