Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FirstName: '',
- MiddleName: '',
- LastName: '',
- EmailAddress: '',
- ReceiveUpdates: false,
- Login: {
- UserName: '',
- Password: '',
- }
- AsyncHttpClient client = new AsyncHttpClient();
- RequestParams params = new RequestParams();
- params.put("FirstName", "ALi");
- params.put("MiddleName", "Farhan");
- params.put("LastName", "Ali");
- params.put("EmailAddress", "far67890@gmail.com");
- params.put("ReceiveUpdates", "false");
- params.put("UserName", "farhan6");
- params.put("Password", "cricket");
- client.post("http://urb-app.com/Buyer/Register", params, new AsyncHttpResponseHandler() {
- @Override
- public void onSuccess(String s) {
- super.onSuccess(s);
- Toast.makeText(getApplicationContext(), "Success :" + s, Toast.LENGTH_LONG).show();
- // tv.append("service_ReloadSqlDB" + " " + s);
- }
- @Override
- public void onFailure(Throwable throwable) {
- super.onFailure(throwable);
- Toast.makeText(getApplicationContext(), "Server Response for onFailure ", Toast.LENGTH_LONG).show();
- }
- });
- Login: {
- UserName: '',
- Password: '',
- },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement