このコードは2.2エミュレーター(API 8)では正常に機能しますが、4.1エミュレーター(API 16)では機能しません。何か案が?
すべての回答と関心をありがとう
`try
{
String url = "http://10.0.2.2:8080/cofradeapps/static/hermandades.xml";
urlHermandades = new URL(url);
HttpURLConnection urlConnection = (HttpURLConnection) urlHermandades.openConnection();
InputStream in = urlConnection.getInputStream();
return in;
}
catch (IOException e)
{
throw new RuntimeException(e);
}