lib/src/main/java/edu/berkeley/boinc/rpc/RpcClient.java
public synchronized boolean createAccount(AccountIn accountIn) {
		try {
			mRequest.setLength(0);
			mRequest.append("<create_account>\n   <url>");
			mRequest.append(accountIn.url);
			mRequest.append("</url>\n   <email_addr>");
			mRequest.append(accountIn.email_addr);
			mRequest.append("</email_addr>\n   <passwd_hash>");
			mRequest.append(getPasswdHash(accountIn.passwd, accountIn.email_addr));
			mRequest.append("</passwd_hash>\n   <user_name>");
			if (accountIn.user_name!=null)
				mRequest.append(accountIn.user_name);
			mRequest.append("</user_name>\n   <team_name>");
			if (accountIn.team_name!=null)
				mRequest.append(accountIn.team_name);
			mRequest.append("</team_name>\n<create_account>\n");
			
			sendRequest(mRequest.toString());
			
			SimpleReplyParser parser = SimpleReplyParser.parse(receiveReply());
			if (parser == null)
				return false;
			mLastErrorMessage = parser.getErrorMessage();
			return parser.result();
		} catch (IOException e) {
			if(Logging.WARNING) Log.w(Logging.TAG, "error in createAccount()", e);
			return false;
		}
	}
/**
	 * Creates account
	 * @param accountIn - account info
	 * @return true for success, false for failure
	 */
Creates account
@param accountIn - account info
@return true for success, false for failure
Creates account @param accountIn - account info @return true for success false for failure
public synchronized boolean createAccount(AccountIn accountIn) {
		try {
			mRequest.setLength(0);
			mRequest.append("<create_account>\n   <url>");
			mRequest.append(accountIn.url);
			mRequest.append("</url>\n   <email_addr>");
			mRequest.append(accountIn.email_addr);
			mRequest.append("</email_addr>\n   <passwd_hash>");
			mRequest.append(getPasswdHash(accountIn.passwd, accountIn.email_addr));
			mRequest.append("</passwd_hash>\n   <user_name>");
			if (accountIn.user_name!=null)
				mRequest.append(accountIn.user_name);
			mRequest.append("</user_name>\n   <team_name>");
			if (accountIn.team_name!=null)
				mRequest.append(accountIn.team_name);
			mRequest.append("</team_name>\n<create_account>\n");
			sendRequest(mRequest.toString());
			SimpleReplyParser parser = SimpleReplyParser.parse(receiveReply());
			if (parser == null)
				return false;
			mLastErrorMessage = parser.getErrorMessage();
			return parser.result();
		} catch (IOException e) {
			if(Logging.WARNING) Log.w(Logging.TAG, "error in createAccount()", e);
			return false;
		}
	}
public synchronized boolean createAccount ( AccountIn accountIn ) { try { mRequest . setLength ( 0 ) ; mRequest . append ( "<create_account>\n   <url>" ) ; mRequest . append ( accountIn . url ) ; mRequest . append ( "</url>\n   <email_addr>" ) ; mRequest . append ( accountIn . email_addr ) ; mRequest . append ( "</email_addr>\n   <passwd_hash>" ) ; mRequest . append ( getPasswdHash ( accountIn . passwd , accountIn . email_addr ) ) ; mRequest . append ( "</passwd_hash>\n   <user_name>" ) ; if ( accountIn . user_name != null ) mRequest . append ( accountIn . user_name ) ; mRequest . append ( "</user_name>\n   <team_name>" ) ; if ( accountIn . team_name != null ) mRequest . append ( accountIn . team_name ) ; mRequest . append ( "</team_name>\n<create_account>\n" ) ; sendRequest ( mRequest . toString ( ) ) ; SimpleReplyParser parser = SimpleReplyParser . parse ( receiveReply ( ) ) ; if ( parser == null ) return false ; mLastErrorMessage = parser . getErrorMessage ( ) ; return parser . result ( ) ; } catch ( IOException e ) { if ( Logging . WARNING ) Log . w ( Logging . TAG , "error in createAccount()" , e ) ; return false ; } }
Creates account
 @param accountIn - account info
 @return true for success, false for failure
Creates account @param accountIn - account info @return true for success false for failure