Keyboard Support

Contact and Search

Keyman.com Homepage

Header bottom

Keyman.com

Other versions
Version 19.0Version 18.0

Index

On this page

KMManager.dontCloseParentAppOnShowKeyboardPicker()


Summary

The dontCloseParentAppOnShowKeyboardPicker() method disables the keyboard picker task flag so keyboard picker doesn't dismiss the parent app.

Syntax

KMManager.dontCloseParentAppOnShowKeyboardPicker()

Description

Normally, launching the KeyboardPickerActivity from a system keyboard closes the parent app.

(The keyboard picker becomes the root of the activity stack)

Calling this function keeps the parent app running in the background.

Examples

Example: Using dontCloseParentAppOnShowKeyboardPicker()

The following script illustrates the use of dontCloseParentAppOnShowKeyboardPicker():

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    // When using Keyman system keyboard within the Keyman app, 
    // disable keyboard picker task flag so keyboard picker doesn't dismiss Keyman app
    KMManager.dontCloseParentAppOnShowKeyboardPicker();

See also