My problem:
I have a https request that returns a json file.
For example: https:www.example.com/example/my_variable
The ''my_variable'' at the end needs one of those values : 1 , 2 , 3, or 4
my_variable is stored in a variable in my main activity in :
my_variable = getIntent().getStringExtra("my_variable");
How can I use my_variable in the API interface ?
So something like:
@GET("https:www.example.com/example/" + my_variable)