As far as I know, in android \"release build\" is signed APK. How to check it from code or does Eclipse has some kinda of secret defines?
I need thi
Answered by Mark Murphy
The simplest, and best long-term solution, is to use BuildConfig.DEBUG. This is a boolean value that will be true for a debug build, false otherwise:
BuildConfig.DEBUG
boolean
true
false
if (BuildConfig.DEBUG) { // do something for a debug build }