Currently reviewing code from here
Problem is,
the API works on postman
from the Android side, is return statuscode 200
But the entity is always -1.
I wonder where's the problem is...
Currently reviewing code from here
Problem is,
the API works on postman
from the Android side, is return statuscode 200
But the entity is always -1.
I wonder where's the problem is...
I want to answer my own question and probably help others who will encounter the same problem as me.
our local API is inside a proxy. So check your emulator proxy settings.
Even your workstation is already configured to the proxy,
your emulator (AVD) may not.
It would still send a response of 200, but no entity since
it is not allowed by the proxy.