Detect if app was downloaded from Android Market

前端 未结 5 1365
被撕碎了的回忆
被撕碎了的回忆 2020-11-28 01:56

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

5条回答
  •  一生所求
    2020-11-28 02:46

    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.

提交回复
热议问题