I have a button that brings up the keyboard

final ImageButton abc = (ImageButton)
numbers.findViewById(R.id.ButtonAbc);
                abc.setVisibility(View.VISIBLE);
                abc.setBackgroundColor(0);
                abc.setOnClickListener(new View.OnClickListener() {
                        public void onClick(final View v) {
                                final InputMethodManager mgr = 
(InputMethodManager) ((Activity)
context)
                                                
.getSystemService(Context.INPUT_METHOD_SERVICE);
                                // only will trigger it if no physical keyboard 
is open
                                mgr.showSoftInput(edit,
InputMethodManager.SHOW_FORCED);// .SHOW_IMPLICIT)
                        }
                });



On May 26, 10:12 am, TreKing <[email protected]> wrote:
> On Wed, May 26, 2010 at 2:49 AM, oriharel <[email protected]> wrote:
> > please help?
>
> Try setting focus on the EditText - the soft keyboard pops up automatically
> for me doing that. Note however that this may depend on the platform version
> and whether the device has a physical keyboard or not. Not sure.
>
> --------------------------------------------------------------------------- 
> ----------------------
> TreKing - Chicago transit tracking app for Android-powered 
> deviceshttp://sites.google.com/site/rezmobileapps/treking

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