This question has been asked a lot, but most of the answers use the deprecated Android HTTPClient. Can someone help me rewrite the following GET request for Android/Java?
curl -u r0fls:12345 -i -X GET http://192.168.0.2/api/token
I was able to do a POST from Android to the server successfully, to create a new user, which I can show if that will be helpful. It took about 25 lines of Java though.