title: How to check if APK is signed or "debug build"?
body: <p>As far as I know, in android "release build" is signed APK. How to check it <strong>from code</strong> or does Eclipse has some kinda of secret defines?</p>
  
  <p>I need this to debug populating ListView items from web service data (no, logcat not an option). </p>
  
  <p>My thoughts:  </p>
  
  <ul>
  <li>Application's <code>android:debuggable</code>, but for some reason that doesn't look reliable. </li>
  <li>Hard-coding device ID isn't good idea, because I am using same device for testing signed APKs. </li>
  <li>Using manual flag somewhere in code? Plausible, but gonna definitely forget to change at some time, plus all programmers are lazy.</li>
  </ul>