Closed troy21688 closed 8 years ago
There's a lot going on here. We use GitHub issues for tracking specific bugs and feature requests. For user support we direct people to StackOverflow and its 'retrofit' tag since there's many more people in the community participating there and it's also a much more appropriate place for interactive help.
It looks like the problem with your above code is that you are passing the full URL as both the endpoint and the relative URL. Instead, pass only the host as the endpoint, and then use just the path /hello
on the annotation.
I have been experimenting with Google App Engine, as I want to learn the basics of server-side programming with Java.
I have successfully followed the tutorial located here: https://github.com/GoogleCloudPlatform/gradle-appengine-templates/tree/master/HelloWorld
I was able to view the Toast message on my app, so I know that under that example, I was able to connect to the server and receive a response.
However, I understand that AsyncTask is becoming outdated, and I am trying to learn Retrofit. Basically, I am trying to replicate the Servlets example from Google in the link above using Retrofit. Below is my code, I am not connecting to the server and would hope that somebody could point me in the right direction:
MainActivity:
}
User Service:
}
My Servlet:
}