isSticky button current state Android
<p>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.</p>

<pre><code>public class SoftKeyboard extends InputMethodService 
        implements KeyboardView.OnKeyboardActionListener {
</code></pre>

<p>And I have a function with onKey to specify the key pressed. </p>
