No class definition found while using Generic Motion listener
<p>My code was set on <code>API 7</code> then i changed it to <code>API 15</code> so that i can get <code>onGenericMotionListener</code></p>

<p>Now i am defining my activity as follow :</p>

<pre><code>  newGame.setOnClickListener(new View.OnClickListener() {

            public void onClick(View v) {
                vibe.vibrate(vibValue);

                   if (levelStage == 1 &amp;&amp; levelId == 1)
                   {       
                       Intent myIntent = new Intent(v.getContext(), Level.class);
                       startActivity(myIntent);
                   }
                   else
                       displayAlertForNewGame(v.getContext());
            }
        });
</code></pre>

<p>Whenever i try to launch this activity i get error <code>java.lang.NoClassDefFoundError</code></p>

<p>using this code to start activity</p>

<pre><code>Intent myIntent = new Intent(v.getContext(),myActivity.class);
                        startActivity(myIntent);


05-22 22:49:20.416: E/AndroidRuntime(6327): FATAL EXCEPTION: main
05-22 22:49:20.416: E/AndroidRuntime(6327): java.lang.NoClassDefFoundError: com.code.global.Level
05-22 22:49:20.416: E/AndroidRuntime(6327):     at com.umar.regGame.MainMenu$1.onClick(MainMenu.java:67)
05-22 22:49:20.416: E/AndroidRuntime(6327):     at android.view.View.performClick(View.java:2449)
05-22 22:49:20.416: E/AndroidRuntime(6327):     at android.view.View$PerformClick.run(View.java:9027)
05-22 22:49:20.416: E/AndroidRuntime(6327):     at android.os.Handler.handleCallback(Handler.java:587)
05-22 22:49:20.416: E/AndroidRuntime(6327):     at android.os.Handler.dispatchMessage(Handler.java:92)
05-22 22:49:20.416: E/AndroidRuntime(6327):     at android.os.Looper.loop(Looper.java:123)
05-22 22:49:20.416: E/AndroidRuntime(6327):     at android.app.ActivityThread.main(ActivityThread.java:4627)
05-22 22:49:20.416: E/AndroidRuntime(6327):     at java.lang.reflect.Method.invokeNative(Native Method)
05-22 22:49:20.416: E/AndroidRuntime(6327):     at java.lang.reflect.Method.invoke(Method.java:521)
05-22 22:49:20.416: E/AndroidRuntime(6327):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
05-22 22:49:20.416: E/AndroidRuntime(6327):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
05-22 22:49:20.416: E/AndroidRuntime(6327):     at dalvik.system.NativeStart.main(Native Method)
</code></pre>

<p>Best Regards</p>
