I am totally, desperate, that is why I am asking you for help. I have the following code in an android application:
public void OnButtonClick(View view) throws ClientProtocolException, IOException, Exception { URL yahoo = new URL("http://privyrobsi.sk/brigades/getBrigades.json"); URLConnection yc = yahoo.openConnection(); BufferedReader in = new BufferedReader( new InputStreamReader( yc.getInputStream())); String inputLine; EditText ET = (EditText) findViewById(R.id.editText2); while ((inputLine = in.readLine()) != null) ET.setText(ET.getText()+inputLine); in.close(); } I got this code from here, I only modified it a little. When I try to run the code as a stand-alone java application, it works. But when I try to use it in android, the emulator says that the unfortunately, the application stopped. I saved the Log from LogCat here. I also have uses-permission android:name="android.permission.INTERNET" in my manifest file.