How to handle dalvikvm VFY: unable to resolve virtual method on android?
<p>I write some code like this:</p>

<pre><code>String focusMode = camera.getParameters().getFocusMode();
</code></pre>

<p>but the getFocusMode() function was api level 5, my app's android:minSdkVersion="3" and android:targetSdkVersion="10"</p>

<p>so when I call this method on a android used api 3 or 4 will crash.</p>

<p>How can I handle the exception, I have tried try {} catch(Execption e) {}, but it can't catch. It also crash, How can I do it?</p>
