title: What is better: @SuppressLint or @TargetApi?
body: <p>I have issues in my app regarding <code>StrictMode</code> and added the code snippet that basically disables the <code>StrictModeHelper</code>. However, Lint complains about <code>setThreadPolicy()</code> now and proposes to either add </p>
  
  <pre><code>@SuppressLint 'NewApi'
  </code></pre>
  
  <p>or </p>
  
  <pre><code>@TargetApi(Build.VERSION_CODES.GINGERBREAD)
  </code></pre>
  
  <p>to the <code>onCreate()</code> event of the view.</p>
  
  <p>Which method is prefered ..or are they basically doing the same?</p>