How to show keypad in touch screen phone, | developer.brewmp.com How to show keypad in touch screen phone, | developer.brewmp.com

Developer

How to show keypad in touch screen phone,

Forums:

I use ITextCtl Interface to start a full screen text input, and it works fine in none touch screen phone.

But in touch screen phone, I can't show input keypad on screen, so I can't input any char.

Could anyone help me?

Thanks very much.

Handle POINTER events and pass to ITextCtl_Handleevent().

Handle POINTER events and pass to ITextCtl_Handleevent().

I passed the pointer to the text control and all I see is a blank screen with a cursor. What do I need to do in order for the keypad to appear? Here is a sample of my test code...
case EVT_POINTER_DOWN:
ITEXTCTL_SetActive(pApp->m_pTextCtl, TRUE);
ITEXTCTL_HandleEvent(pApp->m_pTextCtl, eCode, wParam, dwParam);
ITEXTCTL_Redraw(pApp->m_pTextCtl);
return TRUE;

I passed the pointer to the text control and all I see is a blank screen with a cursor. What do I need to do in order for the keypad to appear? Here is a sample of my test code...
case EVT_POINTER_DOWN:
ITEXTCTL_SetActive(pApp->m_pTextCtl, TRUE);
ITEXTCTL_HandleEvent(pApp->m_pTextCtl, eCode, wParam, dwParam);
ITEXTCTL_Redraw(pApp->m_pTextCtl);
return TRUE;

Do we any API that will show soft key pad on the TS phone that doensnt have hardware keypad?
Will it be OEM specific?
Will my app get suspend if suppose its OEM provided API/control?

I am not using any standard brew controls.
Please help... :confused:
~sam

Do we any API that will show soft key pad on the TS phone that doensnt have hardware keypad?
Will it be OEM specific?
Will my app get suspend if suppose its OEM provided API/control?

I am not using any standard brew controls.
Please help... :confused:
~sam

sam wrote:

Do we any API that will show soft key pad on the TS phone that doensnt have hardware keypad?
Will it be OEM specific?
Will my app get suspend if suppose its OEM provided API/control?

I am not using any standard brew controls.
Please help... :confused:
~sam
Same here, we do not use the brew standard controls and we cant find an api to enable the virtual keypad. :mad:
Is using standard brew controls the only way to enable the touch keypad?
EDIT: Even using the standard ITextCtl does not seems to bring up the virtual keypad. I have tried the suggestions like passing the event to ITextCtl_HandleEvent(), but still no virtual keypad.
Is virtual Keypad only available on the device or is it available on the simulator too?
Has anyone released an app for Touch screen device successfully?

sam wrote:

Do we any API that will show soft key pad on the TS phone that doensnt have hardware keypad?
Will it be OEM specific?
Will my app get suspend if suppose its OEM provided API/control?

I am not using any standard brew controls.
Please help... :confused:
~sam
Same here, we do not use the brew standard controls and we cant find an api to enable the virtual keypad. :mad:
Is using standard brew controls the only way to enable the touch keypad?
EDIT: Even using the standard ITextCtl does not seems to bring up the virtual keypad. I have tried the suggestions like passing the event to ITextCtl_HandleEvent(), but still no virtual keypad.
Is virtual Keypad only available on the device or is it available on the simulator too?
Has anyone released an app for Touch screen device successfully?

hi all,
i am working on an touch screen phone ( LG_10000 ). "I AM ALSO ABLE TO INPUT KEY FROM THE VIRTUAL KEY PAD"
I AM ABLE TO BRING THE VIRTUAL KEY PRESS AS FOLLOWS
[ AFTER TEXT ENTYR SCREEN COMES , I AM TOUCHING THE TEXTENTY RECTANGE 2 TIMES AND THE VIRTUAL KEY PAD COMES AUTOMATICALLY ]
i am using brew 315 and added necessary previlegesb and passing the touch event to "itextctl_handleevent" api

hi all,
i am working on an touch screen phone ( LG_10000 ). "I AM ALSO ABLE TO INPUT KEY FROM THE VIRTUAL KEY PAD"
I AM ABLE TO BRING THE VIRTUAL KEY PRESS AS FOLLOWS
[ AFTER TEXT ENTYR SCREEN COMES , I AM TOUCHING THE TEXTENTY RECTANGE 2 TIMES AND THE VIRTUAL KEY PAD COMES AUTOMATICALLY ]
i am using brew 315 and added necessary previlegesb and passing the touch event to "itextctl_handleevent" api

nayak.prasant wrote:hi all,
i am working on an touch screen phone ( LG_10000 ). "I AM ALSO ABLE TO INPUT KEY FROM THE VIRTUAL KEY PAD"
I AM ABLE TO BRING THE VIRTUAL KEY PRESS AS FOLLOWS
[ AFTER TEXT ENTYR SCREEN COMES , I AM TOUCHING THE TEXTENTY RECTANGE 2 TIMES AND THE VIRTUAL KEY PAD COMES AUTOMATICALLY ]
i am using brew 315 and added necessary previlegesb and passing the touch event to "itextctl_handleevent" api
Thanks for the reply. I am also using brew 3.1.5 SP01.
We checked the app in LG vx10000 through device anywhere, the app doesn't start when phone is closed. It can be started only when the qwerty keypad is opened. I don't think that the screen inside is touch screen enabled.
By necessary privilege do you mean to add any special extension dependency in the dependencies list?

nayak.prasant wrote:hi all,
i am working on an touch screen phone ( LG_10000 ). "I AM ALSO ABLE TO INPUT KEY FROM THE VIRTUAL KEY PAD"
I AM ABLE TO BRING THE VIRTUAL KEY PRESS AS FOLLOWS
[ AFTER TEXT ENTYR SCREEN COMES , I AM TOUCHING THE TEXTENTY RECTANGE 2 TIMES AND THE VIRTUAL KEY PAD COMES AUTOMATICALLY ]
i am using brew 315 and added necessary previlegesb and passing the touch event to "itextctl_handleevent" api
Thanks for the reply. I am also using brew 3.1.5 SP01.
We checked the app in LG vx10000 through device anywhere, the app doesn't start when phone is closed. It can be started only when the qwerty keypad is opened. I don't think that the screen inside is touch screen enabled.
By necessary privilege do you mean to add any special extension dependency in the dependencies list?

hi,
i am adding a mif file , pls go through that and then make the same changes in ur mif file , i think it will work.
in dependency tab add the id "0x0103081d" which is present in "AEEDispSettings.bid" inc folder of brew.
in extensions tab under mime type , add followings
"application/x-touch_screen" with base class as "AEECLSID_APP" and the handler class is ur applet id.
"image/x-disprotation" with base class as "AEECLSID_VIEW" and the handler class is ur applet id. [ "image/x-disprotation" is needed if ur screen is rotating in the secondary display else you may add it ]
and do the steps in previous post , i think it will work,
change the "cricket mif file.txt " to "cricket mif file.mif"

hi,
i am adding a mif file , pls go through that and then make the same changes in ur mif file , i think it will work.
in dependency tab add the id "0x0103081d" which is present in "AEEDispSettings.bid" inc folder of brew.
in extensions tab under mime type , add followings
"application/x-touch_screen" with base class as "AEECLSID_APP" and the handler class is ur applet id.
"image/x-disprotation" with base class as "AEECLSID_VIEW" and the handler class is ur applet id. [ "image/x-disprotation" is needed if ur screen is rotating in the secondary display else you may add it ]
and do the steps in previous post , i think it will work,
change the "cricket mif file.txt " to "cricket mif file.mif"

Thanks for you help.
I tried adding the specified mif settings that was mentioned above. Again in LGVX10000, it just displays that the phone has to be opened in the qwerty mode to run the app. I was not able to launch the app in the touch screen. I couldn't get access to LGvx9700 to test these changes, will post in the details once I get my hands on it.

Thanks for you help.
I tried adding the specified mif settings that was mentioned above. Again in LGVX10000, it just displays that the phone has to be opened in the qwerty mode to run the app. I was not able to launch the app in the touch screen. I couldn't get access to LGvx9700 to test these changes, will post in the details once I get my hands on it.

Has anyone gotten the keypad to show up on the DARE vx 9700?
I'm handling the events and redrawing but it still doesn't show up.
Just shows a white screen with a cursor.

Has anyone gotten the keypad to show up on the DARE vx 9700?
I'm handling the events and redrawing but it still doesn't show up.
Just shows a white screen with a cursor.

Hi,
I am working on VX9700. With the changes in mif file and code, I am now able to see Key Pad.
My App is getting SUSPEND and RESUME whenever keypad appears. But now how can I get value from the softkeypad to my application?
Will I get them in dwparam in RESUME event?
Thanks
Sam

Hi,
I am working on VX9700. With the changes in mif file and code, I am now able to see Key Pad.
My App is getting SUSPEND and RESUME whenever keypad appears. But now how can I get value from the softkeypad to my application?
Will I get them in dwparam in RESUME event?
Thanks
Sam

sam wrote:Hi,
I am working on VX9700. With the changes in mif file and code, I am now able to see Key Pad.
My App is getting SUSPEND and RESUME whenever keypad appears. But now how can I get value from the softkeypad to my application?
Will I get them in dwparam in RESUME event?
Thanks
Sam
Hi Sam,
Could please help by elaborating about the changes you did on the mif and in the code to make the keypad appear. Many of us here have problems in bringing up the keypad.
Any help would be greatly appreciated.

sam wrote:Hi,
I am working on VX9700. With the changes in mif file and code, I am now able to see Key Pad.
My App is getting SUSPEND and RESUME whenever keypad appears. But now how can I get value from the softkeypad to my application?
Will I get them in dwparam in RESUME event?
Thanks
Sam
Hi Sam,
Could please help by elaborating about the changes you did on the mif and in the code to make the keypad appear. Many of us here have problems in bringing up the keypad.
Any help would be greatly appreciated.

hi RDBP,
I have never worked on lg_9700 , if i ll find any clue , i ll definitely post that

hi RDBP,
I have never worked on lg_9700 , if i ll find any clue , i ll definitely post that

sam wrote:Hi,
I am working on VX9700. With the changes in mif file and code, I am now able to see Key Pad.
My App is getting SUSPEND and RESUME whenever keypad appears. But now how can I get value from the softkeypad to my application?
Will I get them in dwparam in RESUME event?
Thanks
Sam
hi sam,
to get the data from soft keypad , use "itextctl_gettext" in "EVT_APP_RESUME"
and the text control sud be active before suspend , it sudnt be free

sam wrote:Hi,
I am working on VX9700. With the changes in mif file and code, I am now able to see Key Pad.
My App is getting SUSPEND and RESUME whenever keypad appears. But now how can I get value from the softkeypad to my application?
Will I get them in dwparam in RESUME event?
Thanks
Sam
hi sam,
to get the data from soft keypad , use "itextctl_gettext" in "EVT_APP_RESUME"
and the text control sud be active before suspend , it sudnt be free

Hi All,
I did these changes:
1. Added MIME type. See screen shot
2. Added AEEPRIVID_DISPSETTINGS 0x0103081d Dependency
3. Sent all the pointer events to ITEXTCTL_HandleEvent.
With some minor UI issues, the code was found to be working and I was able to see the BREW softkeypad. On pressing "Done" on keypad, the value was getting updated to the my ITextControl too. :D
Thanks
Sam

Hi All,
I did these changes:
1. Added MIME type. See screen shot
2. Added AEEPRIVID_DISPSETTINGS 0x0103081d Dependency
3. Sent all the pointer events to ITEXTCTL_HandleEvent.
With some minor UI issues, the code was found to be working and I was able to see the BREW softkeypad. On pressing "Done" on keypad, the value was getting updated to the my ITextControl too. :D
Thanks
Sam

Hi All,
Just got the virtual keyboard on the 9700 to work a few days ago. With regard to what Sam wrote, I did not have to add the MIME type. Also, while I do have AEEPRIVID_DISPSETTINGS, AFAIK it's for handling screen rotation between portrait and landscape modes. I don't think it is required for the virtual keyboard, since it's available in both portrait and landscape.
The key is to pass ALL pointer events to the text control, even if you are pre-handling it, say by making it active (ITEXTCTL_SetActive()). In fact, I think you will have to make it active first before the virtual keyboard will kick in.
Now for my question ... can I start the virtual keyboard in numeric mode? I use ITEXTCTL_SetInputMode( AEE_TM_NUMBERS ), and the keyboard still comes up in the default alphabet mode.

Hi All,
Just got the virtual keyboard on the 9700 to work a few days ago. With regard to what Sam wrote, I did not have to add the MIME type. Also, while I do have AEEPRIVID_DISPSETTINGS, AFAIK it's for handling screen rotation between portrait and landscape modes. I don't think it is required for the virtual keyboard, since it's available in both portrait and landscape.
The key is to pass ALL pointer events to the text control, even if you are pre-handling it, say by making it active (ITEXTCTL_SetActive()). In fact, I think you will have to make it active first before the virtual keyboard will kick in.
Now for my question ... can I start the virtual keyboard in numeric mode? I use ITEXTCTL_SetInputMode( AEE_TM_NUMBERS ), and the keyboard still comes up in the default alphabet mode.

Hi All,
Just to update you all that launching a Softkeypad on Touchscreen phone is OEM specific. I am working on 3 different TS phones:
SamSung
LG
Motorola
Each has a different way of launching SKP and getting data.
~sam

Hi All,
Just to update you all that launching a Softkeypad on Touchscreen phone is OEM specific. I am working on 3 different TS phones:
SamSung
LG
Motorola
Each has a different way of launching SKP and getting data.
~sam

Hi Sam,
Can you tell how to handle virtual key pad for samsung devices?
I am working on Samsung R810, able to get softkeypad, but once enters to the vkeypad application not able to back to the appcation, while same is working fine on LG 9700.
on the keypad Done, Entry mode, Symbols and Back / CLR Key (<--) none works.
Thanks.

Hi Sam,
Can you tell how to handle virtual key pad for samsung devices?
I am working on Samsung R810, able to get softkeypad, but once enters to the vkeypad application not able to back to the appcation, while same is working fine on LG 9700.
on the keypad Done, Entry mode, Symbols and Back / CLR Key (<--) none works.
Thanks.

You need to pass all touch events to ITEXTCTL when Keypad is there!

You need to pass all touch events to ITEXTCTL when Keypad is there!

Hi All,
I have ported my app on 3 Touchscreen phones:
Samsung:R810
Huawei
Motorola
Each had different way of working with SKP
Samsung:
The moment you sent POINTER events to ITEXTCTL, SKP will get launched. SKP is nothing but a layer on top of your app. Your app will not get suspended. Now thru logic in your app send all the events to ITEXTCTL. Upon pressing BACK/OK on SKP your app will get event EVT_USER and XXX_CTL_CHANGED(i forgot exact event, pl verify on device). on getting these, you can get the value of SKP thru ITEXTCTL_GetText. then work normally with your app.
Motorola:
Motorola has a INATIVE APIs for launching SKP. Your App will get suspended.
HUAWEI:
The moment you sent POINTER events to ITEXTCTL, SKP will get launched. SKP is nothing but a layer on top of your app. Your app will not get suspended. Now thru logic in your app send all the events to ITEXTCTL. Upon pressing BACK/OK you will get AVK_SOFT1 and AVK_SOFT2 (indicating that SKP is dismissing)
Thanks
Sam

Hi All,
I have ported my app on 3 Touchscreen phones:
Samsung:R810
Huawei
Motorola
Each had different way of working with SKP
Samsung:
The moment you sent POINTER events to ITEXTCTL, SKP will get launched. SKP is nothing but a layer on top of your app. Your app will not get suspended. Now thru logic in your app send all the events to ITEXTCTL. Upon pressing BACK/OK on SKP your app will get event EVT_USER and XXX_CTL_CHANGED(i forgot exact event, pl verify on device). on getting these, you can get the value of SKP thru ITEXTCTL_GetText. then work normally with your app.
Motorola:
Motorola has a INATIVE APIs for launching SKP. Your App will get suspended.
HUAWEI:
The moment you sent POINTER events to ITEXTCTL, SKP will get launched. SKP is nothing but a layer on top of your app. Your app will not get suspended. Now thru logic in your app send all the events to ITEXTCTL. Upon pressing BACK/OK you will get AVK_SOFT1 and AVK_SOFT2 (indicating that SKP is dismissing)
Thanks
Sam