04-09-2009 05:16 AM
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?
I can understand it may not be possible or it might be taedious to answer all these questions. however any help/guidance is appreciated.
Solved! Go to Solution.
04-09-2009 05:47 AM
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
04-09-2009 05:52 AM
4) Don't know about global menu tracing
5) There is a method called removePhoneListener, to stop its work!
04-09-2009 05:57 AM
04-09-2009 06:00 AM
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 ..
04-09-2009 06:03 AM