How to enable soft keyboard?

by fredchen » Thu, 06 Aug 2009 22:47:59 GMT


Sponsored Links
 Hi,

As title, is there anyone knows how to make the soft keyboard show up?
I am running Android-1.5 on x86 platform and any help is appreciated.

Regards,
Fred
--~--~---------~--~----~------------~-------~--~----~

-~----------~----~----~----~------~----~------~--~---



How to enable soft keyboard?

by Dianne Hackborn » Fri, 07 Aug 2009 00:50:48 GMT


 You just include some IME with your system, which has marked itself as a
default IME (if you don't mark it that way you will need to manually select
it in settings th first time you run).  Note that the LatinIME is marked
this way, so the easiest thing is to use that.

Then it will show.  The system will decide when to show it based on your
hardware:

- If there is no keyboard, you get the behavior of a phone device without a
keyboard, where it is automatically shown to the user.
- If it has a keyboard but that keyboard is not currently accessible to the
user, it will not be shown automatically but the user can explictly show it.
- If there is an accessible keyboard, it will not be shown at all.

Note that this behavior is ulimately up to the IME, so I am describing the
default behavior for an IME, which is what LatinIME uses.






-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~

-~----------~----~----~----~------~----~------~--~---


Sponsored Links


How to enable soft keyboard?

by Harishkumar V » Fri, 07 Aug 2009 01:00:25 GMT


 Hi,

I am in this case.

where my situation is ,
"If it has a keyboard but that keyboard is not currently accessible to the
user, it will not be shown automatically but the user can explictly show
it."

i have no touchscreen or mouse connected.

How to explictly show it to the user?Any pointers will be helpful.

Thanks and Regards,
HarishKumar.V






--~--~---------~--~----~------------~-------~--~----~

-~----------~----~----~----~------~----~------~--~---



How to enable soft keyboard?

by Dianne Hackborn » Fri, 07 Aug 2009 04:53:00 GMT


 Er...  what is the point of showing an on-screen keyboard if there is no
touchscreen or mouse?!?

Anyway, you can use InputMethodManager to explicitly show or hide it.








-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~

-~----------~----~----~----~------~----~------~--~---



How to enable soft keyboard?

by Harishkumar V » Fri, 07 Aug 2009 12:11:54 GMT


 ianne,

Can u detail me how to use InputMethodManager, in which part of the code, i
should modify.

Thanks and Regards,
HarishKumar.V

On Fri, Aug 7, 2009 at 2:22 AM, Dianne Hackborn <hack...@android.com> wrote:


--~--~---------~--~----~------------~-------~--~----~

-~----------~----~----~----~------~----~------~--~---



How to enable soft keyboard?

by fredchen » Fri, 07 Aug 2009 15:25:56 GMT


 i Dianne,

Many thanks for your suggestions. I'm in the case that my device
doesn't have a keyboard, but the soft keyboard still doesn't show up
automatically.
Do you know how can I make sure Latin IME is included in my system? I
find the LatinIME.apk is in /system/app/. Is that ok? If it is ok, how
can I enable
it in settings because i don't see it there? I found there is an item
"Android keyboard" in Locale & text and I enabled it. But the soft
keyboard still not show up...

Regards,
Fred

On 8 121 Harishkumar V <harishpres...@gmail.com> wrote:
--~--~---------~--~----~------------~-------~--~----~

-~----------~----~----~----~------~----~------~--~---



How to enable soft keyboard?

by Dianne Hackborn » Sun, 09 Aug 2009 09:25:15 GMT


 orry I really don't understand what you are trying to do.  You can use the
InputMethodManager API to explicitly show or hide an IME. Whether it
actually shows itself is dependent on the kinds of input available as I
described before, and this decision is ultimately up to each individual IME,
though I outlined what the default behavior can be.

On Thu, Aug 6, 2009 at 9:11 PM, Harishkumar V <harishpres...@gmail.com>wrote:



--
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails. All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~

-~----------~----~----~----~------~----~------~--~---



How to enable soft keyboard?

by Dianne Hackborn » Sun, 09 Aug 2009 09:38:36 GMT


 ndroid keyboard is the user-visible name of LatinIME.  I can't debug your
system without being able to run it. If the IME is enabled, then it
probably wouldn't be shown because the system things you have a keyboard...
so look at the log output during boot to see what classes it is assigning to
your input devices (note what you care about is the ALPHAKEY class as
defined in RawInputEvent, which is currently determined by a device being
able to generate a 'q' key code).

You can also attach the debugger to the LatinIME process to step through
when it is asked to show, and see why it decides not to.

2009/8/7 fredchen <chis...@gmail.com>



--
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails. All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~

-~----------~----~----~----~------~----~------~--~---



Other Threads

1. Reg. accessing the external files

Consider this scenerio:
The end user copies a bunch of text files onto his android every week.
My application which has to do some analysis on this text files and
show the results to the user.

Can my application access files anywhere in the file system of
android? If NO, what would be the location where the user is supposed
to copy the files to or any alternate solution ? Because the user
copies the files periodically on to Android. My application is
supposed to do analysis and display the results.

Please Help. I'm a newbie.

-- 

2. PhoneFactory

Hi,

-- 

3. Best practices for integrated (context-sensitive) help?

4. license question about bootchart.c

5. AssertionError on android.util.Xml.parse

6. WebView wait for images

7. Best practices for integrated (context-sensitive) help?