i tried to send an http request via android studio on java , and it gave me the error in the title , basiclly the program catches the program , can anyone help me please
P.S i gave the user premission for internet access
public class reader{
public static String get = null;
public static void run(){
try {
URL oracle = new URL("http://www.oracle.com/");
BufferedReader in = new BufferedReader(
new InputStreamReader(oracle.openStream()));
String inputLine;
while ((inputLine = in.readLine()) != null) {
Log.d("Ron", inputLine);
get += inputLine;
}
in.close();
}catch(Exception e){
Log.d("Ron" , e.toString());
}
}