Detect if app was downloaded from Android Market

前端 未结 5 1377
被撕碎了的回忆
被撕碎了的回忆 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:29

    Perhaps you could add a setting to your app for "developer mode".

    Another possibility, have it look for a special file or configuration file on the SD card, and key off of that.

提交回复
热议问题