I am developing soft keyboard and I added a toggle button similar to the shift button to my keyboard with option isSticky=true on it. How can I control this sticky button from my code? Or actually is it even possible, since my toggle button loses state each time I change the orientation.
public class SoftKeyboard extends InputMethodService
implements KeyboardView.OnKeyboardActionListener {
And I have a function with onKey to specify the key pressed.
See Handling Orientation Change: http://developer.android.com/guide/topics/resources/runtime-changes.html