Daniel Daniel - 4 months ago 11
Android Question

Are Log messages and System.out.println calls visible once an Android app is published?

I have many calls to

Log.d()
and
System.out.println()
, which I have used for debugging, in my Android application. Are these log messages still visible to anyone who runs the production apk?

Answer

Yes. it is visible to others and retrievable using tools. You can pro grammatically check if it is in debug mode by following code,

 if (BuildConfig.DEBUG) {
    Log.d(TAG, "xxxx");
 }

Thank you

Comments