I have following server Urls:
server-base-url/method1
server-base-url/method2
server-base-url/method3
...
server-base-url/method100
I am currently using a properties file to store the URLs. When I need to consume some of the server URLs, then I read the properties file and perform the http request using Spring 4 Android
I know that should be another way (and a better way) to do this. What is the best practice to achieve this?


Another Option is to use Plain Java:
It's pretty straight forward...You can have all the information needed in a single
Java ClassNow regarding the network comm It's really up to you...There are many choices...I personally like Retrofit 2 which is a wrapper on top of a networking library okhttp
A short example of how you can use
Retrofitwith the above method is:Rest Api (like User Rest api)
The Rest Client
Usage Example