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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T02:05:01+00:00 2026-05-15T02:05:01+00:00

Is there a way to simulate opening/closing the ‘hardware’ keyboard in the emulator? I

  • 0

Is there a way to simulate opening/closing the ‘hardware’ keyboard in the emulator?
I have to test some changes that I capture using getResources().getConfiguration().keyboardHidden and this would help a fair lot 🙂

Thank you in advance!

  • 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-15T02:05:02+00:00Added an answer on May 15, 2026 at 2:05 am

    To add to Samuh’s explanation (which I didn’t know — good to know that I can still simulate opening/closing the hardware keyboard by changing orientation), you can test the difference between landscape with no keyboard and landscape with keyboard open, by changing the hardware configuration of the emulator’s AVD: The AVD can be configured to either have a hardware keyboard or not. If your emulator has no hardware keyboard, the soft keyboard appears as you would expect, and going to landscape mode should appear as it would in landscape mode on a phone with no keyboard.

    To configure the emulator AVD to act as if it has no hardware keyboard, in the AVD & SDK Manager tool, click “New” to add a new AVD, select your desired SDK level and other options, and under the Hardware section, add a new property for “Keyboard support”, and set it to “No”. In the AVD emulator “Details” dialog, this will show up as “hw.keyboard = no”.

    Note: you can also modify an existing AVD to toggle its keyboard support by:

    1. Open the AVD Manager
    2. Select the AVD you want to edit
    3. Click on Edit… on the right
    4. In the Hardware section, click on New… on the right
    5. In the Property combo box select Keyboard support and click OK
    6. Again in the Hardware section, change the Keyboard support value column to “no”
    7. Finally click Edit AVD and exit the Manager.

    Alternatively, you can also edit the <avd path>/avd/<AVD device name>.avd/config.ini file, and changing the hw.keyboard entry to yes or no. On Mac and Linux, is generally ~/.android/, and on Windows /Users/<user-name>/.android/.

    Based on Samuh’s answer, that means you can check the behavior of the phone being in landscape mode with keyboard open (emulator has a hardware keyboard configured), or in landscape mode with no keyboard (emulator is configured with no keyboard). Two minor frustrations with this are 1) you can’t necessarily emulate how it will look in landscape mode on a device that has a hardware keyboard, but the keyboard is hidden (if I understand correctly), and 2) you would have to run two separate emulators or at least two AVDs booted separately, in order to test those two different cases.

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

Sidebar

Related Questions

I want to test some forms. Is there a way to simulate the press
Is there any way to encapsulate an Iframe with some other element to simulate
Is there any way to simulate a try-finally or try-except in a language that
Is there a way to simulate the OUTPUT clause in MySQL, as we have
Is there a way to simulate touch events in Windows 8 (and preferably in
Is there a decent way to simulate server side includes using Python on Google
Is there a way by which we can simulate thread level constants in C++?
Is there way to copy a file into Plone with WebDAV and have Plone
Is there a way to simulate the update of an app from Version 1
Is there a way to simulate not having flash player installed, so I can

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.