asas

public String getAccount() {
		return account;
	}

	public String getPasswd() {
		return passwd;
	}

	public String getServer() {
		return server;
	}

	private class AuthenicationHandler extends Handler {
		public void handleMessage(Message msg) {
			super.handleMessage(msg);
			if ("failure".equals(msg.getData().getString("result"))) {
				alert(msg.getData().getString("reason"));
				activity.dismissDialog(TraceMe.DIALOG_PROGRESS_BAR);
			}
		}
	}
private AuthenicationHandler ahandler = new AuthenicationHandler();

	public AuthenicationHandler getAhandler() {
		return ahandler;
	}
public void onAuthenicateFail(String prompt) {
		Message message = new Message();
		Bundle loginInfoBundle = new Bundle();
		loginInfoBundle.putString("reason", prompt);
		loginInfoBundle.putString("result", "failure");
		message.setData(loginInfoBundle);
		ahandler.sendMessage(message);
	}

你可能感兴趣的:(AS)