[android-developers] Re: Take an action when soft keyboard is launched

2009-09-30 Thread AJ
Hi Thomas, I think you can do this on the basis of parameters of onSizeChanged. void onSizeChanged (int w, int h, int oldw, int oldh) Parameters w Current width of this view. h Current height of this view. oldwOld width of this view. oldhOld height of this view. Thanks,

[android-developers] Re: Take an action when soft keyboard is launched

2009-09-30 Thread Thomas
Hi AJ, this solution is not possible to me, because, I'd like to hide a menu when the soft keyboard appears. When I hide the keyboard, the View changes the size, so comparing the height and old height, it will think the soft keyboard disappeared. Thanks for you help thomas On Wed, Sep 30,

[android-developers] Re: Take an action when soft keyboard is launched

2009-09-29 Thread AJ
check the following link http://developer.android.com/reference/android/view/View.html#onSizeChanged%28int,%20int,%20int,%20int%29 hope this helps you. Thanks, AJ On Sep 29, 10:34 am, Gulfam gulfa...@gmail.com wrote:  Hi All,    I also want to take some actions on soft keyboard appear and

[android-developers] Re: Take an action when soft keyboard is launched

2009-09-29 Thread Mark Murphy
Gulfam wrote: I also want to take some actions on soft keyboard appear and disappear. any one can help us how we can get appear and disappear events. There are no such events, short of detecting a window resize (and, off the top of my head, I don't know how to do that). -- Mark Murphy (a

[android-developers] Re: Take an action when soft keyboard is launched

2009-09-29 Thread AJ
If your class is extending from an Activity then I don't know how to get that event. But if your app has some class which is extending from View, then onSizeChanged() gets the control when ever your view gets shortened. Like:- WebView get in Browser app Thanks, AJ On Sep 29, 2:34 pm, Mark

[android-developers] Re: Take an action when soft keyboard is launched

2009-09-29 Thread Thomas
Hi Thanks all for your answers. I put a code in the onSizeChanged(), but when this method is called always when the view resizes. I'd like to know how I can discover using this method if the virtual keyboard is opened or not. I saw the InputMethodManager, but I didn't find how to use this

[android-developers] Re: Take an action when soft keyboard is launched

2009-09-28 Thread Thomas
Hi All, Does Nobody know that? thanks again Tomás On Fri, Sep 25, 2009 at 11:07 AM, Thomas perd...@gmail.com wrote: Hi All, I'd like to take an action always when soft keyboard is shown or hidden. In my activity there is a menu that I want to hide when soft keyboard is launched and this

[android-developers] Re: Take an action when soft keyboard is launched

2009-09-28 Thread Gulfam
Hi All, I also want to take some actions on soft keyboard appear and disappear. any one can help us how we can get appear and disappear events. Gulfam On Sep 29, 12:32 am, Thomas perd...@gmail.com wrote: Hi All, Does Nobody know that? thanks again Tomás On Fri, Sep 25, 2009 at