Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>watching the date , possibly you have a solution for your question, otherwise:</p> <p>Here is the same response i made to another question related : <a href="https://stackoverflow.com/questions/5457486/android-is-there-a-way-to-tell-if-the-softkeyboard-is-shown/5457919#5457919">Is there a way to tell if the soft-keyboard is shown?</a></p> <p>but i copy full response here to avoid dead links:</p> <p>Please check <em>Configuration Changes</em> for your Activity</p> <p>This for your <strong>AndroidManifest.xml</strong> </p> <p>and this for your <em>Activity</em> class <a href="http://developer.android.com/reference/android/app/Activity.html#onConfigurationChanged(android.content.res.Configuration)" rel="nofollow noreferrer">http://developer.android.com/reference/android/app/Activity.html#onConfigurationChanged(android.content.res.Configuration)</a></p> <p>You will need to @Override the public method <strong>onConfigurationChanged</strong>(android.content.res.Configuration) of your Activity to be able to handle, for example, this values:<br> <strong>hardKeyboardHidden</strong>,<br> <strong>keyboard</strong>,<br> <strong>keyboardHidden</strong> </p> <p>For all possible values check <a href="http://developer.android.com/reference/android/content/res/Configuration.html" rel="nofollow noreferrer">http://developer.android.com/reference/android/content/res/Configuration.html</a></p> <p>You will see there something like this:</p> <pre><code>HARDKEYBOARDHIDDEN_NO HARDKEYBOARDHIDDEN_UNDEFINED HARDKEYBOARDHIDDEN_YES KEYBOARDHIDDEN_NO KEYBOARDHIDDEN_UNDEFINED KEYBOARDHIDDEN_YES KEYBOARD_12KEY KEYBOARD_NOKEYS KEYBOARD_QWERTY KEYBOARD_UNDEFINED </code></pre> <p>Also there you will be able to read something like this:</p> <pre><code>public int hardKeyboardHidden A flag indicating whether the hard keyboard has been hidden. public int keyboard The kind of keyboard attached to the device. public int keyboardHidden A flag indicating whether any keyboard is available. </code></pre> <p><strong>UPDATE:</strong></p> <p>Here is a specific <strong>sample</strong> of what i´m talking about:</p> <p><a href="http://developer.android.com/guide/topics/resources/runtime-changes.html" rel="nofollow noreferrer">http://developer.android.com/guide/topics/resources/runtime-changes.html</a></p> <pre><code> @Override public void onConfigurationChanged(Configuration newConfig) { super.onConfigurationChanged(newConfig); // Checks the orientation of the screen if (newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE) { Toast.makeText(this, "landscape", Toast.LENGTH_SHORT).show(); } else if (newConfig.orientation == Configuration.ORIENTATION_PORTRAIT){ Toast.makeText(this, "portrait", Toast.LENGTH_SHORT).show(); } // Checks whether a hardware keyboard is available if (newConfig.hardKeyboardHidden == Configuration.HARDKEYBOARDHIDDEN_NO) { Toast.makeText(this, "keyboard visible", Toast.LENGTH_SHORT).show(); } else if (newConfig.hardKeyboardHidden == Configuration.HARDKEYBOARDHIDDEN_YES) { Toast.makeText(this, "keyboard hidden", Toast.LENGTH_SHORT).show(); } } </code></pre> <p>I hope this help you</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload