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 9274233
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T16:18:27+00:00 2026-06-18T16:18:27+00:00

my case is: I have one EditText field that is with disabled focus. Beside

  • 0

my case is: I have one EditText field that is with disabled focus.
Beside EditText field I has two buttons for Input methods. So I want when click first button: to open soft keybord and edit text in EditText field. I try many ways with:

InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
imm.showSoftInput(yourEditText, InputMethodManager.SHOW_IMPLICIT);

and doesn’t work for me. Only way to open soft keyboard is:

toggleSoftInput(InputMethodManager.SHOW_FORCED, 0)

but there is no way to edit info from EditText field.

May you suggest me how to open keyboard and edit text for some EditText when click button.
Thanks a lot!

Edited:

So, EditText is not focusable be default. When I click Keyboard button – should be focusable, then show me soft keyboard to enter text and appear in EditText. Other method to insert is A-B-C button which not required keyboard. It will be something like Morse code input – touch and hold A-B-C button ๐Ÿ™‚ I’ll try suggested example to implement in my case. Thank you guys ๐Ÿ™‚

my case

  • 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-06-18T16:18:28+00:00Added an answer on June 18, 2026 at 4:18 pm

    Thanks guys for your help ๐Ÿ™‚ I used all suggestions that you gave me, searched and tested a lot of other scripts and finally my code is working ๐Ÿ™‚

    Here is my final code:

    InputEditText = (EditText) findViewById(R.id.InputText);
    
    public void InputData() {
    
            /* Keyboard Button Action */
            KeyboardButton.setOnClickListener(new View.OnClickListener() {
                public void onClick(View v) {
    
                    Log.v(TAG, "On Keyboard Button click event!");
    
                    InputEditText.requestFocus();
                    InputEditText.setFocusableInTouchMode(true);
    
                    InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
                    imm.showSoftInput(InputEditText, InputMethodManager.SHOW_FORCED);
    
                }
    
            });
    
    }
    

    It may be useful for someone ๐Ÿ™‚
    Thank you!

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

Sidebar

Related Questions

I have 3 EditText elements, and I want to jump from one field to
I know that ScrollView can have only one Child but in my case I
Given a case where I have an object that may be in one or
I have to compare two strings for case insensitive equality which one is faster
I am working on this app where I have one EditText field where you
This one should be pretty simple. The use case is that I have a
I have two EditText boxes and a RadioGroup which contains two radio buttons. When
I have one XML with 20 fields in my case based on type we
I have a case where i have three entities with one-to-many and one-to-many relationships:
Case One Say you have a little class: class Point3D { private: float x,y,z;

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.