private String[] contactOfList() { SecurityAppUtil.fetchXml(Global.url + "clients/listClientContact/" + userId); agencyList = MyXMLHandler.agencyList; contactList = new String[agencyList.getName().size()]; contactList = agencyList.getName().toArray(contactList); return contactList; }
private void connectWebservice() { SecurityAppUtil.fetchXml( Global.url + "clients/changePassword/" + userId + "/" + oldPassword + "/" + newPassword); agencyList = MyXMLHandler.agencyList; String message = null; String status = null; String[] statusList = new String[agencyList.getStatus().size()]; statusList = agencyList.getStatus().toArray(statusList); String[] messageList = new String[agencyList.getMessage().size()]; messageList = agencyList.getMessage().toArray(messageList); for (int i = 0; i < statusList.length; i++) { status = statusList[i]; message = messageList[i]; } if (status.equals("true")) { showMessage(message); startActivity(new Intent(getApplicationContext(), SecurityAppActivity.class)); } else if (status.equals("false")) { showMessage(message); } }