I'm having trouble with the following, I make the connection to the Database all right but in the code I use a Map of parameters because I step userName, password, etc, however I need to pass a variable of type Date tbm. All these variables will be sent to a code in php. How could I solve this ??
Follow the code below:
private Map<String, String> params;
public RegisterRequest(String name, String username, String birthDate, String password, Response.Listener<String> listener, String email, int gender)
{
super(Method.POST, REGISTER_REQUEST_URL, listener, null);
params = new HashMap<>();
params.put("userName", name);
params.put("userNick", username);
params.put("userPassword", password);
params.put("userBirthDate", birthDate);
params.put("userEmail", email);
params.put("userGender", gender + "");
}
@Override
public Map<String, String> getParams() {
return params;
}