I have an Android library that uploads data to a test server and production server. I\'d like developers using this library to use the test server when developing, and produ
You could default your configuration to the production environment and use a custom Instrumentation that sets the configuration to testing environment. Intrumentation should be removed before publishing to the android market.