I am having some code in my Android application that I use for debugging but don't want to have in production. Is there a way in Android, Java to exclude some code in production version? Like in C with define, ifdef, endif?
I was into assertion, which can be enabled in run configuration of the Android application, but that assert statement requires the assert code to return a boolean value so that doesn't work for me.
Thanks!