private String sendData(String title, String pass) throws ClientProtocolException, IOException{
  HttpPost request = makeHttpPost(title,pass,deviceID,phoneNumber,content,"http://.../....php");
  HttpClient client = new DefaultHttpClient();
  ResponseHandler<String> reshandler = new BasicResponseHandler();
  String result = client.execute(request,reshandler);

    return result;
 }

 

1. title과 pass 를 웹서버에 보내고 정상처리 되어 다시 받았을 경우

   result 결과인 title, pass. 중 title 만 따로 string tilte 로 받을 수 있는 방법을 알 고 싶습니다.

(예를 들어 등록이 완료된경우 등록된 title은 ***입니다 이런식으로 하고싶어서요)

 

2. 만약 비밀번호가 틀렸을 경우 프로세스를 중지 시키고 싶은데 현재 주고 받는 상태만 할줄알아서

   password를 보내고 확인하는  방법을  어떻게 해야하는지 아시면 간단한 함수정도만 부탁드릴께요

   간단하게만 알려주시면 더 검색해서 해보겠습니다.

  (자세하게 알려주셔도 되고요...;;;;)