BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 09-10-2007, 01:12 PM   #1
nimbus_cloud
New Member
 
Join Date: Jul 2007
Model: 7100T
PIN: N/A
Carrier: Smart
Posts: 5
Default Intercept an outgoing call?

Please Login to Remove!

Hi guys!

I have an app that could listen to a phone call, but that is when my app is opened by clicking an icon. Now, I want my app to be accessed in a different way... I was wondering if it's possible to alert my app to make it some sort of listener when an outgoing call is made through the blackberry contacts/addressbook application? Thanks!
Offline  
Old 09-11-2007, 05:13 AM   #2
arifzaman
Thumbs Must Hurt
 
Join Date: Jun 2007
Location: Bangladesh
Model: 8800
PIN: N/A
Carrier: EDGE
Posts: 93
Default

Hi nimbus_cloud,

Implement PhoneListener interface to Intercept any outgoing call.

Cheers,
ARIF
Offline  
Old 09-11-2007, 05:53 AM   #3
nimbus_cloud
New Member
 
Join Date: Jul 2007
Model: 7100T
PIN: N/A
Carrier: Smart
Posts: 5
Default

Thank you, arifzaman. However, I need my app to listen for outgoing calls without actually opening the app. It's like I want my app to run in the background or something.
Offline  
Old 09-11-2007, 06:16 AM   #4
arifzaman
Thumbs Must Hurt
 
Join Date: Jun 2007
Location: Bangladesh
Model: 8800
PIN: N/A
Carrier: EDGE
Posts: 93
Default

Welcome nimbus_cloud!

Quote:
Originally Posted by nimbus_cloud View Post
Thank you, arifzaman. However, I need my app to listen for outgoing calls without actually opening the app. It's like I want my app to run in the background or something.
Code:
public final class BackgroundPhoneCallListenerApp extends Application 
  implements PhoneListener {
  
    static public void main(String[] args) {
        BackgroundPhoneCallListenerApp app = new BackgroundPhoneCallListenerApp();
        app.enterEventDispatcher();
    }
    
    private BackgroundPhoneCallListenerApp() {        
        Phone.addPhoneListener(this);        
    }
    
    // Here, Implement methods of PhoneListener interface
}
Hope this will Help!

Cheers,
ARIF

Last edited by arifzaman; 09-11-2007 at 06:19 AM..
Offline  
Old 07-09-2008, 08:46 AM   #5
MobileDeveloper
Thumbs Must Hurt
 
Join Date: Jun 2008
Model: 8100
PIN: N/A
Carrier: Vodafone
Posts: 134
Default

Hi

Can you please say whether I should check the Options for

Run on StartUp

System Module


Other than the code , what all do I have to set in the Project properties ?
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


NSK TiMAX NL95M/ A500/ A500L/ AK500L/ AS500L /AW500L CERAMIC BEARINGS  picture

NSK TiMAX NL95M/ A500/ A500L/ AK500L/ AS500L /AW500L CERAMIC BEARINGS

$80.75



A54MA55B and BC186A413G52 frequency converters A500/F540 series 55KW drive board picture

A54MA55B and BC186A413G52 frequency converters A500/F540 series 55KW drive board

$350.00



Dentistry Replacement NSK TiMAX NL95M/ A500/ A500L/ AK500L/ AS500L /AW500L NEW picture

Dentistry Replacement NSK TiMAX NL95M/ A500/ A500L/ AK500L/ AS500L /AW500L NEW

$79.95



1PC USED A54MA30B Mitsubishi F500/A500/A540 Series 30-37KW Mainboard #CZ picture

1PC USED A54MA30B Mitsubishi F500/A500/A540 Series 30-37KW Mainboard #CZ

$228.00



MITSUBISHI A500 / FR-A540-5.5K-NA INVERTER 3PH  picture

MITSUBISHI A500 / FR-A540-5.5K-NA INVERTER 3PH

$108.00



1PC USED A54MA55B BC186A413G52 Mitsubishi A500/F540 Series 55KW Drive Board #CZ picture

1PC USED A54MA55B BC186A413G52 Mitsubishi A500/F540 Series 55KW Drive Board #CZ

$317.00







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