login authentication .
    else{
    			username=mEditTextUserName.getText().toString();
    			password=mEditTextPassword.getText().toString();
    			ArrayList<NameValuePair> postParameters = new ArrayList<NameValuePair>();
    			postParameters.add(new BasicNameValuePair("username", username));
    			postParameters.add(new BasicNameValuePair("password", password));
    			String response = null;
            	try {
            	    response = CustomHttpClient.executeHttpPost("http://192.168.0.109:3000/mobile/authenticate", postParameters);
            	    String res=response.toString();
            	    res= res.replaceAll("\\s+","");
            	  
            	    if(res.equals("1"))
            	    	showMessage(this,"Correct Username or Password");
            	    else
            	    	showMessage(this,"Sorry!! Incorrect Username or Password");
            	} catch (Exception e) {
            		
            	}
    			/*Intent in = new Intent(this,Kanga2.class);
    			startActivity(in);*/
    		}
    
    
  /*  In this code i am getting resopnse in xml format then how to convert sstring to xml .and how to do authentication*/
login authentication .
===

    else{
    			username=mEditTextUserName.getText().toString();
    			password=mEditTextPassword.getText().toString();
    			ArrayList<NameValuePair> postParameters = new ArrayList<NameValuePair>();
    			postParameters.add(new BasicNameValuePair("username", username));
    			postParameters.add(new BasicNameValuePair("password", password));
    			String response = null;
            	try {
            	    response = CustomHttpClient.executeHttpPost("http://192.168.0.109:3000/mobile/authenticate", postParameters);
            	    String res=response.toString();
            	    res= res.replaceAll("\\s+","");
            	  
            	    if(res.equals("1"))
            	    	showMessage(this,"Correct Username or Password");
            	    else
            	    	showMessage(this,"Sorry!! Incorrect Username or Password");
            	} catch (Exception e) {
            		
            	}
    			/*Intent in = new Intent(this,Kanga2.class);
    			startActivity(in);*/
    		}
    
    
  /*  In this code i am getting resopnse in xml format then how to convert sstring to xml .and how to do authentication*/