Have you tried @Override public boolean onKeyUp(int keyCode, KeyEvent
event)?

- Greg

On May 27, 9:57 am, davidrobin <[email protected]> wrote:
> Hi all,
>
> I am new to Android and I am currently blocked by this issue:
>
> I am using the following code to display the soft keyboard, but how
> can I get the input?
>
>         Button b = (Button)findViewById(R.id.Button01);
>         b.setOnClickListener(new View.OnClickListener() {
>                         @Override
>                         public void onClick(View v) {
>                                 InputMethodManager m =
> (InputMethodManager)test.this.getSystemService(Context.INPUT_METHOD_SERVICE);
>                                 m.toggleSoftInput(0, 
> InputMethodManager.HIDE_NOT_ALWAYS);
>                         }
>                 });
>
> I searched the group for a couple of pages and did not find the
> answer.
> I know this may be very easy for you guys and the answer may be right
> there.
> Any suggestion will be very appreciated.
>
> Thank you very much.
>
> -Robin

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