I am working on an Android app which needs to connect to a remote server for some data.
During development, I connect a real device via USB to test/run the app. Since the server side too is being simultaneously developed, I also run the server in my local environment for dev
testing.
The server URL and other parameters have been defined as constants. I am wondering if there is some mechanism which will automatically if the app code being run is in dev mode, i.e. device is connected to laptop via USB, or any other mechanism, so I can achieve the following
GWT offers a very convenient
GWT#isProdMode(). Considering both Android and GWT frameworks, I was wondering if there is something similar available in Android