Advertisement
Guest User

Untitled

a guest
Oct 27th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. BtLogIn.setOnClickListener(new View.OnClickListener() {
  2. @Override
  3. public void onClick(View v) {
  4. try {
  5.  
  6. username = etUsername.getText().toString();
  7. password = etPassword.getText().toString();
  8. baseUrl = etServerUrl.getText().toString();
  9.  
  10. ApiAuthenticationClient apiAuthenticationClient =
  11. new ApiAuthenticationClient(
  12. baseUrl
  13. , username
  14. , password
  15. );
  16.  
  17. AsyncTask<Void, Void, String> execute = new ExecuteNetworkOperation(apiAuthenticationClient);
  18. execute.execute();
  19. } catch (Exception ex) {
  20. }
  21. }
  22. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement