I've noticed, that the test call didn't send the password with the POST body but as a header.
I've adjusted the call so it is now the same userAgent, and also extracted the request building into a method.
The Test onFailure can also pass the IO exception message to the toast, it might be useful, like Network unreachable or Timeout etc.
Note: I didn't do Java programming since 5 years or so, so please tell me, if there is something wrong :-D
(I also had to rebase my code, as I also fixed some of the same things, that you pushed recently)
I've noticed, that the test call didn't send the password with the POST body but as a header. I've adjusted the call so it is now the same userAgent, and also extracted the request building into a method.
The Test onFailure can also pass the IO exception message to the toast, it might be useful, like Network unreachable or Timeout etc.
Note: I didn't do Java programming since 5 years or so, so please tell me, if there is something wrong :-D
(I also had to rebase my code, as I also fixed some of the same things, that you pushed recently)