10-30-2008 03:33 AM
Is it still no any way to do call control in 4.6/4.7 API?
Our product really needs to have such functions for insturcting the phone to answer/reject/disconnect/hold the calls.
10-30-2008 10:12 AM
Anyone still interested?
I found it. (only for reject though -> the one that those commercial apps use)
PM me for the solution.
If enough interesents show up, I will post to the public.
11-12-2008 10:43 AM - edited 11-12-2008 11:13 AM
By the Olimp...
I don't see why not.
Edit: Sorry I like you all. Please don't hold the deleted lines against me
So this is it:
1) implement phone listener.
2) on callIncoming() use getScreen... getMenu...
3) List the menuItems from that menu.
4) one of these items will be "end call" use MenuItem.Run()
For other tricks just browse the docs and this forum.
(I still don't know how to accept tha call though ;( )
P.S. Noobs use this: Ui.getUiEngine().getActiveScreen().getMenu(0).getI
I like Kudos
11-12-2008 01:38 PM
Looking for the "end call" text only works when the device's language is English. How about looking at the menu ordinal:
if (menuitem.getOrdinal( ) == 69632) // 0x11000
The ordinal seems to be 69632 (0x11000) in all the OS versions I've tried. Anybody find a case where it's not?
11-13-2008 03:26 AM
But you must be sure it works on every device/OS series/version?
I resolved the issue by changing the locale to 'en' right before comparison. Then switching it back immediatelly after.
11-19-2008 07:01 PM
I'm just starting with the JDE, so please excuse me for the newbie question...
Would you please show me the code to find the menuitem by text (end call) or by id? I looked at the RIM docs for the Menu class, but I found no enumerator/method to get the complete list of contained menu items...
Also, how to extract the text/caption of a menu item?
Thanks a lot for your help!
11-20-2008 03:13 AM
11-20-2008 03:35 AM
thanks a lot, I'll try this.
One more related question, if I may. Yesterday, before knowing what you just tought me, I tried to just get items 0 and 1, thinking that there were only two items in the main menu...the two items that I see when I manually open that menu in the device (accept / end call). However none had ordinal = 69632, the value mentioned earlier. How is that? Are there more menu items that are just invisible when there's an incoming cal, but they still are present in the collection?