안녕하세요 안드로드 웹서버 관련해서 질문드릴려고 합니다.
제가 안드로이드 웹서버에서 jsoup를 이용해 여러개의 이미지를 가지고 올려고합니다 .
URL url=new URL(html);
HttpURLConnection conn=(HttpURLConnection)url.openConnection();
if(conn.getResponseCode()==HttpURLConnection.HTTP_OK)
{
BufferedReader reader=new BufferedReader(new InputStreamReader(conn.getInputStream()));
StringBuilder builder=new StringBuilder();
String line="";
while(true)
{
line=reader.readLine();
if(line==null)
{
break;
}
builder.append(line+"\n");
}
String output=builder.toString();
doc = Jsoup.parse(output);
Elements img=doc.select("img");
String imgText=img.attr("src");
textView.append(doc.body().toString());
//textView.append(imgText);
imageView=(ImageView)findViewById(R.id.image);
OpenHttpConnection opHttpCon = new OpenHttpConnection();
opHttpCon.execute(imageView, "http://192.168.0.235:8080/db/"+imgText);
}
아래 사진 처럼 이미지 태그를 하나밖에 가져오질 못합니다 .
여러개의 이미지 태그를 가지고 올려고하면 어떻게 코드를 짜야 될까요 ?

