Specify system property on launch of android application

Friday, July 11, 2014

I need to specify a System Property when launching my android application from Android Studio / gradle. I cant figure out ho to do that.


Background is that my app needs to know the URL of the server it talks to. The default needs to be overridden during testing and development. I have code in the app that merges system properties on top of application properties read from a property file under assets folder. Now all I need is the ability to launch the app specifying a system property somehow.


TIA for your help.







http://ift.tt/VUraKU