Programmatically reject a call on the BlackBerry - blackberry

I'm trying to programmatically reject a call on a BlackBerry, with Java + JDE.
I'm intercepting the callIncoming event, and in there I need to do something to reject a call from a specific number.
Does anyone know how to do that?

I couldn't find an API for directly rejecting the call in progress. However, you could explore a hack where you inject a keypress of the Hangup/Disconnect button (see EventInjector).
As to determining the phone number, you could use Phone.getCall(callId).getDisplayPhoneNumber() or Phone.getActiveCall().getDisplayPhoneNumber().

There is no other way than the EventInjector. The "security" layout of the BlackBerry API does not allow to hang up / reject a call. We tried to find a solution for this issue for 2 years.

Using the incoming call listener, and notification APIs you can reject a call programmatically.
There is a topic discussing it on the blackberry developer forums, you can find it here

try this
How to disconnect a call in blackberry

Related

iOS: Is it possible to programmatically disconnect a call?

Is it possible to disconnect a call programmatically? I know call kit can be used to make VOIP calls/ block users but is it possible to install an app and lets say user is busy and just by enabling a flag in the app just send them all to voicemail or disconnect without user interaction?
UPDATE
Someone marked the question as too broad. It is a simple question, is it possible to 'Programmatically disconnect a call'. not sure how this can be marked as too broad.
No, this is not possible.
Stack Overflow says my answer is too short... what else can I say? I make iOS apps since 2012, I know which APIs there are. It's hard to prove that something doesn't exist, other than saying "I would know it if it were possible."

iOS App with this Features? Possible?

I'm trying to develop an application with prohibited features for iOS. Swift.
I just want to know how possible they are (to make and to submit).
1 - Silencing the phone: I've seen this question in a lot of posts and the all says NO, No posible and will be rejected but... how about this app? This app silence the phone (putting ringer volume to 0) -> https://itunes.apple.com/us/app/autosilent-automatically-silence-your-phone/id474777148?mt=8
This app was summited a few years ago, i think when Celestial Framework and submitting apps with Private Frameworks was something possible, not now, so, is this possible?
2 - Blocking calls: I know since iOS 10 you can block calls with CallKit but, you need to give XCProvider a list of numbers to block. I want to block all the calls, can i give all the numbers? in the world?.
3 - Respond blocked calls with an SMS back: I can not have information about the incoming call (phone number) to send some request to a web API so it can send a message to the caller. Or do i?.
Thank you very much for all your responses...
I think your second and third point are impossible at the current situation.
You could give XCProvider a list with all number but that list would have a length of about 10^13 entries.
Apple doesn't provide a public API to recognize blocked calls and thats why you third point seems to be impossible too.

SMS/iMessage auto-responder on iOS

I was wondering if there were any way to, on an iPhone (will root/jailbreak if necessary), detect when you I receive an SMS message from a person and automatically then respond. I will not need to post this on the app store so anything violating that is not an issue.
Personally I am more familiar with android and that is why I am asking for your help.
Autoresponder 3 should do the trick for you.

iOS: Home/Power Pressed Event

If an app is being distributed via Enterprise signing then is there any framework that allow me to receive Home or Power pressed events in background?
All events in iOS are UIEvent that it's a wrapper of GSEvent. With a bit of hacking you should be able to add a callback function of some GSEventRef. Here there are the headers of the framework, or just dump it yourself :)
No unfortunately this is not possible, there are no public API's to achieve this, and from my research there doesn't seem to be knowledge of a private API either.

Handling call events in windows phone

I just want to know whether has anyone tried to handle incoming calls through the application. Like, rejecting call if it matches a blacklist, answer, hold etc through the application.?
This is a question similar to this one. And from those answers I learn that is not possible to block/reject a phone call as this would interfere with the normal functionality of the phone. The App Certification requirements clearly state that this is not allowed. In short, even if you would succeed on doing this, your app wouldn't make it through validation to the MarketPlace.

Resources