I was making android keyboard using the same structure of the sample keyboard in SDK. I have an option button on the keyboard. I want this button to open the preference activity. Here is the code part:
if (primaryCode == LatinKeyboardView.KEYCODE_OPTIONS) {
Intent i = new Intent(this, ImePreferences.class);
startActivity(i);
}
The keyboard freezes when i press the option button. Anybody with a better solution?