menü hatası
merhaba;
programımda menü tuşuna basınca hata alıyodum bende keyevent kullanımk menuye basıldığında işlem yapma gibi bi kod yazdım ve hatayı kaldırdım. ama şimdi menü tuşuna basıldığında menü çıkmasını istiyorum , ilgili kodları yazdım ancak hata alıyorum , aynı kod başka projde çalışıyo ancak bende çalışmıyo , support.v7 de sanırım bi hata var ama çözemedim , logcate düşen hata böyle;
08-08 14:26:43.301: E/AndroidRuntime(6787): FATAL EXCEPTION: main
08-08 14:26:43.301: E/AndroidRuntime(6787): java.lang.NullPointerException
08-08 14:26:43.301: E/AndroidRuntime(6787): at android.support.v7.app.ActionBarImplICS.getThemedContext(ActionBarImplICS.java:302)
08-08 14:26:43.301: E/AndroidRuntime(6787): at android.support.v7.app.ActionBarImplJB.getThemedContext(ActionBarImplJB.java:20)
08-08 14:26:43.301: E/AndroidRuntime(6787): at android.support.v7.app.ActionBarActivityDelegate.getActionBarThemedContext(ActionBarActivityDelegate.java:210)
08-08 14:26:43.301: E/AndroidRuntime(6787): at android.support.v7.app.ActionBarActivityDelegate.getMenuInflater(ActionBarActivityDelegate.java:100)
08-08 14:26:43.301: E/AndroidRuntime(6787): at android.support.v7.app.ActionBarActivity.getMenuInflater(ActionBarActivity.java:72)
08-08 14:26:43.301: E/AndroidRuntime(6787): at android.app.Activity.onCreatePanelMenu(Activity.java:2516)
08-08 14:26:43.301: E/AndroidRuntime(6787): at android.support.v4.app.FragmentActivity.onCreatePanelMenu(FragmentActivity.java:225)
08-08 14:26:43.301: E/AndroidRuntime(6787): at android.support.v7.app.ActionBarActivity.superOnCreatePanelMenu(ActionBarActivity.java:233)
08-08 14:26:43.301: E/AndroidRuntime(6787): at android.support.v7.app.ActionBarActivityDelegateICS.onCreatePanelMenu(ActionBarActivityDelegateICS.java:146)
08-08 14:26:43.301: E/AndroidRuntime(6787): at android.support.v7.app.ActionBarActivity.onCreatePanelMenu(ActionBarActivity.java:200)
08-08 14:26:43.301: E/AndroidRuntime(6787): at android.support.v7.app.ActionBarActivityDelegateICS$WindowCallbackWrapper.onCreatePanelMenu(ActionBarActivityDelegateICS.java:293)
08-08 14:26:43.301: E/AndroidRuntime(6787): at com.android.internal.policy.impl.PhoneWindow.preparePanel(PhoneWindow.java:453)
08-08 14:26:43.301: E/AndroidRuntime(6787): at com.android.internal.policy.impl.PhoneWindow.onKeyDownPanel(PhoneWindow.java:853)
08-08 14:26:43.301: E/AndroidRuntime(6787): at com.android.internal.policy.impl.PhoneWindow.onKeyDown(PhoneWindow.java:1535)
08-08 14:26:43.301: E/AndroidRuntime(6787): at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchKeyEvent(PhoneWindow.java:2052)
08-08 14:26:43.301: E/AndroidRuntime(6787): at android.view.ViewRootImpl.deliverKeyEventPostIme(ViewRootImpl.java:3834)
08-08 14:26:43.301: E/AndroidRuntime(6787): at android.view.ViewRootImpl.handleImeFinishedEvent(ViewRootImpl.java:3783)
08-08 14:26:43.301: E/AndroidRuntime(6787): at android.view.ViewRootImpl$ViewRootHandler.handleMessage(ViewRootImpl.java:2926)
08-08 14:26:43.301: E/AndroidRuntime(6787): at android.os.Handler.dispatchMessage(Handler.java:99)
08-08 14:26:43.301: E/AndroidRuntime(6787): at android.os.Looper.loop(Looper.java:137)
08-08 14:26:43.301: E/AndroidRuntime(6787): at android.app.ActivityThread.main(ActivityThread.java:4867)
08-08 14:26:43.301: E/AndroidRuntime(6787): at java.lang.reflect.Method.invokeNative(Native Method)
08-08 14:26:43.301: E/AndroidRuntime(6787): at java.lang.reflect.Method.invoke(Method.java:511)
08-08 14:26:43.301: E/AndroidRuntime(6787): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1007)
08-08 14:26:43.301: E/AndroidRuntime(6787): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:774)
08-08 14:26:43.301: E/AndroidRuntime(6787): at dalvik.system.NativeStart.main(Native Method)