title: How to use assert in android?
body: <p>I want to use <code>assert obj != null : "object cannot be null"</code> on Android device. The assert doesn't seem to work, so I searched online and I found this local solution: </p>
  
  <blockquote>
    <p>adb shell setprop debug.assert 1</p>
  </blockquote>
  
  <p>it does work on my local machine.</p>
  
  <p>I want to run this command using my Eclipse project(so it would be in the source control).
  How can I do it?</p>