BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 06-17-2008, 04:56 AM   #1
MobileDeveloper
Thumbs Must Hurt
 
Join Date: Jun 2008
Model: 8100
PIN: N/A
Carrier: Vodafone
Posts: 134
Default How can I automatically disconnect a call

Please Login to Remove!

Can any one please say how I can create an app that

As soon as a number is dialled will check the number and if its a particular number will automatically disconnect the call
Offline  
Old 06-18-2008, 01:51 AM   #2
Jayaseelan
Thumbs Must Hurt
 
Join Date: Jun 2008
Location: Chennai
Model: 8130
PIN: N/A
Carrier: AIRTEL
Posts: 51
Default

Quote:
Originally Posted by MobileDeveloper View Post
Can any one please say how I can create an app that

As soon as a number is dialled will check the number and if its a particular number will automatically disconnect the call
hi,

u can use this code for disconnecting the call..

EventInjector.KeyCodeEvent pressEndKey=new EventInjector.KeyCodeEvent(KeyCodeEvent.KEY_DOWN,( char)Keypad.KEY_END,KeypadListener.STATUS_NOT_FROM _KEYPAD,100);
EventInjector.KeyCodeEvent releaseEndKey=new EventInjector.KeyCodeEvent(KeyCodeEvent.KEY_UP,(ch ar)Keypad.KEY_END,KeypadListener.STATUS_NOT_FROM_K EYPAD,100);
EventInjector.invokeEvent(pressEndKey);
EventInjector.invokeEvent(releaseEndKey);
__________________
Jayaseelan.V
Mobile Application Developer
INDIA.
Offline  
Old 06-18-2008, 06:18 AM   #3
MobileDeveloper
Thumbs Must Hurt
 
Join Date: Jun 2008
Model: 8100
PIN: N/A
Carrier: Vodafone
Posts: 134
Default

Hi

Thanks for the code

Can you please say which Simulator you are using ?

Would it be possible tosend me the full program if its OK ?
Offline  
Old 06-18-2008, 11:28 PM   #4
Jayaseelan
Thumbs Must Hurt
 
Join Date: Jun 2008
Location: Chennai
Model: 8130
PIN: N/A
Carrier: AIRTEL
Posts: 51
Default

Hi Mobile Application developer,

Am trying it in 8130 simulator and it works fine..

Try to use AbstractPhoneListener methods...

You can easily solve your problem..
__________________
Jayaseelan.V
Mobile Application Developer
INDIA.
Offline  
Old 06-19-2008, 12:00 AM   #5
sunnan
Thumbs Must Hurt
 
Join Date: Nov 2007
Model: 8100
PIN: N/A
Carrier: vodafone
Posts: 61
Default

hi jayaseelan,
can event injector can be invoked for unlocking keypad...if so plz suggest me ....
Offline  
Old 06-19-2008, 01:29 AM   #6
Jayaseelan
Thumbs Must Hurt
 
Join Date: Jun 2008
Location: Chennai
Model: 8130
PIN: N/A
Carrier: AIRTEL
Posts: 51
Default

Quote:
Originally Posted by sunnan View Post
hi jayaseelan,
can event injector can be invoked for unlocking keypad...if so plz suggest me ....
Hi sunnan,

I think it is possible to unlock the system using injector..

I didn't try this...

I hope it wil work..

First press and release * using Injector and then immediately press and release dial(green) button..
__________________
Jayaseelan.V
Mobile Application Developer
INDIA.
Offline  
Old 06-19-2008, 01:59 PM   #7
MobileDeveloper
Thumbs Must Hurt
 
Join Date: Jun 2008
Model: 8100
PIN: N/A
Carrier: Vodafone
Posts: 134
Default

Hi

Can anyone please tell me how I can write code to

LISTEN for a number being dialled so that I can catch the event

and then either disconnect the call if it meets some specific conditions?

How can I create a program so that it will be always listening and checking whether a call is being made ?
Offline  
Old 06-19-2008, 11:52 PM   #8
Jayaseelan
Thumbs Must Hurt
 
Join Date: Jun 2008
Location: Chennai
Model: 8130
PIN: N/A
Carrier: AIRTEL
Posts: 51
Default

[QUOTE=MobileDeveloper;978533]Hi

Can anyone please tell me how I can write code to

LISTEN for a number being dialled so that I can catch the event

and then either disconnect the call if it meets some specific conditions?

How can I create a program so that it will be always listening and checking whether a call is being made ?[/QUOTE


Hi Mobile Application Developer,

Jut try to use PhoneListener or AbstractPhoneListener in your program..

and in main function wrote like this,

static public void main(String[] args)
{
MyPhone.registerOnStartup();
}

then this app always looking the phone applications function..

good luck..
__________________
Jayaseelan.V
Mobile Application Developer
INDIA.
Offline  
Old 06-20-2008, 07:22 AM   #9
shraddha294
Thumbs Must Hurt
 
shraddha294's Avatar
 
Join Date: Oct 2007
Location: Hyderabad
Model: 8800
PIN: N/A
Carrier: TMobile
Posts: 111
Default

refer to the RIM API documentation thoroughly, i don't think any of your questions asked here will be unanswered.

Last edited by shraddha294; 06-20-2008 at 07:24 AM..
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Schneider Electric Energy Server EBX510 Server For Energy Management- picture

Schneider Electric Energy Server EBX510 Server For Energy Management-

$4350.00



FANUC Server Driver A06B-6077-H111 picture

FANUC Server Driver A06B-6077-H111

$2158.86



FANUC Server Driver A06B-6117-H211 picture

FANUC Server Driver A06B-6117-H211

$3993.99



SERVER TECHNOLOGY 4870-XLS-44 SENTRY VDC 48VOLT DC REMOTE POWER MANAGER picture

SERVER TECHNOLOGY 4870-XLS-44 SENTRY VDC 48VOLT DC REMOTE POWER MANAGER

$299.99



Used & Tested FSP FSP300-701UJ Server Power Supply picture

Used & Tested FSP FSP300-701UJ Server Power Supply

$153.70



ADVANTECH ADAM-4570L 2-PORT RS-232 SERIAL DEVICE SERVER picture

ADVANTECH ADAM-4570L 2-PORT RS-232 SERIAL DEVICE SERVER

$133.45







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.