Hi Eric,
i dont have reply to this problem but i too am facing same
scenario .please if you can throw some light on to my problem i would
really appreciate that .

actually i am creating a custom view extending a textview, and then
trying to hook to the system softkeyboard throw the snippet you have
mentioned in your post.

  InputMethodManager imm = (InputMethodManager)getContext
().getSystemService(Context.INPUT_METHOD_SERVICE);
mm.toggleSoftInputFromWindow(myview.getWindowToken(),
InputMethodManager.SHOW_IMPLICIT, 0);
But no success ......... please let me know what needs to be done to
showsoftinput in custom views .


Thanks
Sankalp

On Dec 14, 11:14 pm, Eric Hackborn EH <[email protected]> wrote:
> I've been experimenting with the IMM and it's mostly straightforward, but for
> some reason, my custom view that launches the soft keyboard works only
> in portrait mode.  launching it is easy enough:
>
>         InputMethodManager imm =
> (InputMethodManager)getContext().getSystemService(Context.INPUT_METHOD_SERVICE);
>         imm.toggleSoftInputFromWindow(getWindowToken(),
> InputMethodManager.SHOW_IMPLICIT, 0);
>
> I've seen a couple notes about the soft keyboard only working in portrait but 
> I
> assume this was a limitation in a previous version, since all the
> Android EditText
> views work fine in both portrait and landscape.  Is there some
> additional piece of
> work needed to enable landscape?
>
> thanks much,
> eric hackborn

-- 
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