Hi all, I am converting a game to android platform. In view class i have onKeyDown and onKeyUp method. Still key press is not recognizing(Using directional pad to navigate menus). i added following entries
setFocusable(true); setFocusableInTouchMode(true); after adding this entry i am getting exception. 07-29 00:44:32.306: ERROR/AndroidRuntime(871): Uncaught handler: thread main exiting due to uncaught exception 07-29 00:44:32.316: ERROR/AndroidRuntime(871): java.lang.NullPointerException 07-29 00:44:32.316: ERROR/AndroidRuntime(871): at android.view.inputmethod.InputMethodManager.startInputInner (InputMethodManager.java:931) 07-29 00:44:32.316: ERROR/AndroidRuntime(871): at android.view.inputmethod.InputMethodManager.checkFocus (InputMethodManager.java:1105) 07-29 00:44:32.316: ERROR/AndroidRuntime(871): at android.view.inputmethod.InputMethodManager.onWindowFocus (InputMethodManager.java:1134) ............. ............ ............ ............ can you pls any one help about this. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---