try {
String URLName = "http://www.sample.com";
String line,res = "";
HttpURLConnection con = (HttpURLConnection) new URL(URLName).openConnection();
BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));
while ((line = in.readLine()) != null){
res=res+line;
}
}
catch (Exception e) {
e.printStackTrace();
}
最後に、友人の Android 4.x の res から "" を取得しましたが、エミュレーターでは問題なく動作し、友人の電話のブラウザーを使用してサイト www.sample.com を開くと、アプリが再び動作するまで電話を再起動します