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. Logcat Filter for two or tags in Eclipse?

Clicked on create filter could not figure out from docs how to create
a filter for say two or more tags. If I have two tags
com.test.TestClassA and com.test.TestClassB how do I create a filter
that shows log for both of these classes? I saw how you can start ADB
for only certain tags, but how can this be done in eclipse? Please
provide details thanks. What exactly do I need to enter on the tag
line when creating a new filter in eclipse?

-- 

2. Problem Activity

I have problem with activity. . my activity is playing sound..
when i start activity, sound is played. but , when i changed to be a
landscape mode . the sound is playing again..
why it happen??
can you give me a solution for my problem??thx..

-- 
Mobile Developer
(Android,iphone,Blackberry,J2ME,brew,symbian)
mobile :
085722945257
email :
kevin.r.octav...@gmail.com
arsenal_a...@yahoo.co.id
blog :
kevinroctavian.wordpress.com

-- 

3. answering machine in android

4. Camera preview demo

5. How do I Crop an picture after taking it?

6. Usage of Zoom Controls

7. published app not found by android market search