I use this API in my IME service.

And I applied the solution from Issue 4604
(http://code.google.com/p/android/issues/detail?id=4604).
It could solve this problem.

2010/7/31 Dianne Hackborn <[email protected]>:
> Is the other input method actually enabled by the user?
> Also you aren't clear where you are using this, but the API only works from
> within the current input method.  It does not work for applications.
>
> On Fri, Jul 30, 2010 at 11:15 PM, a...@tw <[email protected]> wrote:
>>
>> Anyone ever use this API: switchInputMethod?
>>
>> I want to switch my IME from in my code.When I call this API,
>> sometimes the IME switched sometimes not.
>> When the requested IME not launched or display in the screen, the
>> original IME still remain in the screen, but cannot commit text into
>> the box.
>>
>> Or another alternative way to do same thing ?
>>
>> From the comment in InputMethodService.java
>>    /**
>>     * Force switch to a new input method, as identified by <var>id</
>> var>.  This
>>     * input method will be destroyed, and the requested one started
>> on the
>>     * current input field.
>>     *
>>     * @param id Unique identifier of the new input method ot start.
>>     */
>> public void switchInputMethod(String id) { ....
>>
>> Does it mean we lost the connection between editor and IME?
>>
>> Is there any procedure or prerequisite needed?
>>
>> I found it also reported as issue#8725.
>> http://code.google.com/p/android/issues/detail?id=8725
>>
>> Thanks in advance
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>
> --
> Dianne Hackborn
> Android framework engineer
> [email protected]
>
> 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.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to