How to use OpenSL ES only if available
<p>I want to use OpenSL` ES only when available i.e. if Android version >= 2.3</p>

<p>Currently I have in <code>Android.mk</code></p>

<pre><code>LOCAL_LDLIBS    += -lOpenSLES
</code></pre>

<p>But this won't work if Android version &lt; 2.3</p>

<p>Can I somehow load Open SL library dynamically only if Android version >= 2.3, maybe using <code>System.loadLibrary</code> ?</p>
