Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6596465
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:04:47+00:00 2026-05-25T18:04:47+00:00

I am working with Android’s standard softkeyboard input method editor. I am showing the

  • 0

I am working with Android’s standard softkeyboard input method editor. I am showing the softkeyboard on my android emulator after a specific key has been pressed and an edittext view has focus. My purpose is to set the focus on the softkeyboard after it appears on screen. I know softkeyboards are generally used for input without a hard keyboard at all, but in my case the app I am developing needs this functionality as it will run on a custom device and android’s source is being modified for custom functionality. Does anybody have any idea on how to tackle this problem? Could it be possible that touch mode does not allow to set focus on the keyboard?

EDIT: Clarification

Sorry for being ambiguous. Basically I require the following functionality from the softkeyboard in the following case.

  1. User places cursor (using keyboard) on EditText. Because he is using a keyboard the application will not show the softkeyboard.
  2. User presses a SPECIAL key on the keyboard to bring up the softkeyboard.
  3. Focus should change frrom the EditText to the SOFTKEYBOARD, meaning that the user should be able to navigate and select keys on the softkeyboard using the hard keyboard. Of course this means that key events should be added to the standard softkeyboard.
  4. After user chooses a key he presses enter (for example) and the key character should appear on the edittext.

Right now the problem is that when i bring up the softkeyboard the FOCUS remains on the edittext. I would like to know if it is even possible to place the focus on the softkeyboard and move on it using a hard keyboard. As i told you before this is custom functionality. Maybe I am tackling this problem the wrong way and a simple popup window with a keyboard view would suffice.

Lauren I think you are right in the sense that the standard softkeyboard is implemented as a service and does not follow the rules of regular views.

Any advice is appreciated.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T18:04:48+00:00Added an answer on May 25, 2026 at 6:04 pm

    I think that there are two kind of ‘focus’ here:

    • EditText focus is necessary to ensure there is exactly one receiver for the keyboard events
    • Keyboard focus, meaning the keyboard is visible and the keys can be pressed.

    To my understanding, in android, only the EditText gets the focus. The keyboard runs in a service and gets touch events thank to a special Insets class.

    If all you need is to force your keyboard visibility, you should try answers from this question.

    EDIT

    I think there are two ways to do so depending on if you want this keyboard to be specific to an activity or available everywhere.

    • Activity specific

    To my understanding, the inputmethodservice that is responsible for showing the keyboardview will not allow you to achieve this.

    My best advice is that you create a specialized keyboard view that have this “focusable keys” feature (extending keyboardview would be a good starting point).

    You can change the keyboard visibility (using View.VISIBLE and View.GONE) to make it appear and disappear.

    Your should then code your own behavior to highlight the key with the focus and move it accordingly.

    Your activity will also have to remember the last EditText that had focus to send text or keyCodes to it.

    • System wide

    If you need this behavior to be available everywhere on the system, then you must provide your own inputmethodservice. I advice you take a look at this post as well as the SoftKeyboard sample in the SDK.

    Please note that you will also need to create a custom KeyboardView as described above, but without the need to remember the EditText focus.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been working on the Android SDK platform, and it is a little unclear
I have been working on android for the last 6 months. I wonder why
I have been working with android for a few years now, not once have
I am working in Android with SQLite. My db has 2 tables: Table 1:
I am working in Android using Open GL ES. I have been trying to
I've been working with Android for just a couple of weeks now and have
I am working in android SDK(Eclipse) platform 2.2 and I have been running through
Working on android application, wanna add twitter feature to it , like after every
I've been working with Android for well over a year now, but I still
I have been working with android for a little while now and feel pretty

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.