What is wrong with this code?
import java.io.*; import java.net.*; ... URL url = new URL(e.getText().toString()); HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection(); InputStream in = new BufferedInputStream(urlConnection.getInputStream()); If you comment out the last line, nothing happens. If you leave it, the application is compiled, but a message pops up at runtime.
Π ΠΏΡΠΈΠ»ΠΎΠΆΠ΅Π½ΠΈΠΈ "Π₯Π₯Π₯" ΠΏΡΠΎΠΈΠ·ΠΎΡΠ»Π° ΠΎΡΠΈΠ±ΠΊΠ° and it closes abnormally.
Π ΠΏΡΠΈΠ»ΠΎΠΆΠ΅Π½ΠΈΠΈ "Π₯Π₯Π₯" ΠΏΡΠΎΠΈΠ·ΠΎΡΠ»Π° ΠΎΡΠΈΠ±ΠΊΠ°- Is the error itself? - Daniel ShatzAsyncTask), the problem was solved, thanks. - Daniel Kolesnichenko