Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Developer
Posts: 27
Registered: ‎04-09-2009
My Device: Not Specified
Accepted Solution

Confirmations, questions surrounding a calling card app

Hello,

Greetings to you all bunch. I'm a newbie and this is my first post here.

I am working on an app is similar to a Automated-Long distance calling card.

This is how the app is desired to be used,
1. Dial "55555" - a toll free number
2. Select language by pressing 1 for English, 2 for German etc
3. Enter 12 digit Identification PIN
4. After successful identification enters a valid phone number and the call starts.

I have no experience of Blackberry development. So far have spent time reading manuals, forums and posts.

Via this post, I thought I will try to substantiate and confirm my findings. Listing below some-such questions,

1. Is Event - Injection or Tracing the "End call" menu-item(..and running it), the only way to end an initiated call?
2. Isn't there a Blackberry API available to end a call?
3. To end the call, is menu tracing a preferred method over event injection? If it's so, is that due to deprecation of event injection?
4. How safe is Global menu tracing and running/execution?
5. After a call is ended, dialing 55555(Step 1..see above) programatically is done using PhoneArguments class. Which leads to recursion due to a pre-registered PhoneListener? In such scenarios is there a best practice/method to de-register the phoneListener? or how this should ideally be handled?

6.


I can understand it may not be possible or it might be taedious to answer all these questions. however any help/guidance is appreciated.

Thanks,
FG

Developer
Posts: 1,477
Registered: ‎12-30-2008
My Device: Torch 9810

Re: Confirmations, questions surrounding a calling card app

1) Yes there are only two ways for doing this.

2) No. - no API has been exposed to the developers as for now

3) Event injection is the best method since 4.2 version of OS

--
Manimaran Selvan
Co-Founder, Tech Lead,
Equity Markets Research Group
Developer
Posts: 1,477
Registered: ‎12-30-2008
My Device: Torch 9810

Re: Confirmations, questions surrounding a calling card app

4) Don't know about global menu tracing Smiley Sad

5) There is a method called removePhoneListener, to stop its work!

 

Thanks! 

--
Manimaran Selvan
Co-Founder, Tech Lead,
Equity Markets Research Group
Developer
Posts: 16,992
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Confirmations, questions surrounding a calling card app

i never encountered any problems with the menu hack. i don't think it is intended by RIM though.
the end call menu item is no longer available with 4.6+

event injection is often problematic. first it is disabled by default (but you can check it with applicationpermissionmanager). second it is sometimes disabled by ITPolicy on corporate devices. third it can lead to strange things if the user interacts in between, but with the end key this should not be the issue.

personally i try to run the menu item, if it is not present i inject the end key.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Developer
Posts: 1,477
Registered: ‎12-30-2008
My Device: Torch 9810

Re: Confirmations, questions surrounding a calling card app

But simon, that is still a hack.. Ok that's not a problem.. I'd personally use menu alone if not RIM removed it after version 4.6 .. Smiley Tongue

 

Thanks! 

--
Manimaran Selvan
Co-Founder, Tech Lead,
Equity Markets Research Group
Developer
Posts: 1,477
Registered: ‎12-30-2008
My Device: Torch 9810

Re: Confirmations, questions surrounding a calling card app

I also agree with this simon's point
it can lead to strange things if the user interacts in between.
Cheers.
--
Manimaran Selvan
Co-Founder, Tech Lead,
Equity Markets Research Group
Highlighted
New Developer
Posts: 27
Registered: ‎04-09-2009
My Device: Not Specified

Re: Confirmations, questions surrounding a calling card app

As a freshman..some of your answers shake my confiedance. But they also have set me on some direction.

 

Thanks. Again..mantaker and Simon.