I am currently developing an android app that require to talk with mysql server and php files to share json strings , however I am testing my app using my own device and only when i am connected with the same Network of my pc ,
though if I want to make a presentation of that app I want to talk with the php files that are on the internet , so i host them on the internet and switch my url hard coded for the application to work
my question is : is there any way to make my app check in what network it is at and switch from url1 to url2 without me going and change it hard coded ??
I don't know if someone understood my goal but i hope you guys can help me