Dragging speed in android
<p>This might a simple question, but I am stuck.
I want to set the levels of the dragging speed and increment myint accordingly in my application. This is a small part of my app. </p>

<pre><code> int myint=0;    
  case MotionEvent.ACTION_MOVE:

          //calculate the speed 
              //speed=event.getEventTime();

          if(speed==?){
                level=1;
                myint++;
              }
              if(speed==?){
                level=2;
                myint=myint+2;
              }
          tv.setText(" sped level "+level);
</code></pre>

<p>Many thanks in advance!</p>
