title: How to replace code on publish with Eclipse for Android
body: <p>I'm looking for a way to replace a block of debug code for release so that I don't have to keep removing it when going back to development. My primary goal is to avoid hackers, even though this isn't foolproof on Android. So, for example, I call an empty static method:</p>
  
  <pre><code>TestActivity.test();
  </code></pre>
  
  <p>and replace this with:</p>
  
  <pre><code>if(isDebug()) return;
  </code></pre>
  
  <p>So, when I'm developing it would just call the dummy method, but after publish it would check for debug. </p>
  
  <p>Is this an extension or something that Proguard can handle?</p>