0

Is there any easy and straight way to strip-out all the logging calls in NDK when in release mode?

PerracoLabs
  • 16,449
  • 15
  • 74
  • 127
  • 1
    This is what I do: http://stackoverflow.com/questions/11190469/android-app-crashes-suddenly-while-running/11271063#11271063 – Turix Jul 19 '12 at 07:14

1 Answers1

1

See https://stackoverflow.com/a/2025764/78496 for how to do it on iOS. The principle is the same.

You can set a flag in your Makefile using

LOCAL_CFLAGS += -DDEBUG_ON
Community
  • 1
  • 1
chedabob
  • 5,835
  • 2
  • 24
  • 44