PhotoBackup / client-android

The Android PhotoBackup client, made to free your pictures from your device
https://photobackup.github.io/
GNU General Public License v2.0
48 stars 15 forks source link

Unified test call, so it also transmits the password hash + logging #26

Closed zealot128 closed 8 years ago

zealot128 commented 8 years ago

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)

stephanepechard commented 8 years ago

Did you try it with some of the PB clients? I don't have much time for it at the moment, but will try it as soon as I can.

stephanepechard commented 8 years ago

Ok, I get my error... Will try it myself, found a way to test it on a device.