private URLConnection uConn;
 private URL m_UrlRecWeather;
private InputStream in;
 
 public void xmlReceive(int offset){
  Log.i("xmlReceive", "START XMLRECEIVE");
  String m_sdefaultUrl = http://www.웹주소.com/~~~.php?id="+offset
  String m_sConnectUrl;
  
  int offset=1;  
  m_sConnectUrl = m_sdefaultUrl +  offset;
  try {
   m_UrlRecWeather = new URL(m_sConnectUrl);
   uConn = m_UrlRecWeather.openConnection();   
   uConn.setConnectTimeout(7000);
   uConn.setReadTimeout(7000);
   in = uConn.getInputStream();
   xpp.setInput(in, "euc-kr");
   xmlParsing(xpp);
  } catch (Exception e) {
   // TODO Auto-generated catch block
   e.printStackTrace();
  }            
 }
다음과 같이 URLConnection 을 이용했습니다.

xmlParsing() 메소드에서 실제적인 xmlPullParser 작업이 이루어지고 있구요

에뮬레이터나 기계에서 테스트해보면 이상이 없는데

기계두대를 동시에 접속 시도했을 때 잘될때도 있고

한대가 접속성공하고 한대는 무한대기상태로 갔다가 "응답하지 않습니다 종료하시겠습니까"?

라는 메시지가 나오면서 프로세스가 강제종료 될때도 있습니다.

다른 부분은 이상없는거 같은데 연결접속하는 부분에서 이상이 생기는게 거의 확실한것 같아요 ㅠ.ㅠ

좋은 방법 없을까요?

테스트기기는 모토로이와 NEXUS S 였습니다.