Find correct android version on device
<pre><code>    if (Build.VERSION.SDK_INT &gt; Build.VERSION_CODES.GINGERBREAD) {
        //--incompatible code--
    } else {
        //--compatible code--
    }
</code></pre>

<p>The condition runs into incompatible code on Gingerbread. Does <code>Build.VERSION.SDK_INT</code> represents actual device version ? or the SDK version the app has been compiled with ?</p>
