title: How to avoid NoClassDefFoundError with different Android API versions
body: <p>I'm developing an application for APIs from v10 to v17.</p>
  
  <p>My activity implements OnDragListener which is available only from API v14. </p>
  
  <pre><code>public class MyActivity extends Activity implements View.OnDragListener {
      ....
  }
  </code></pre>
  
  <p>So, when application is installed on device with API v10 it fails to load activity with <code>java.lang.NoClassDefFoundError</code>. </p>
  
  <p>I understand that this won't work on API v10, that's OK. I'm handling this inside the activity.</p>
  
  <p>I just want to know What is the practice to handle different API versions when it comes to features like this?</p>