Welcome nimbus_cloud!
Quote:
Originally Posted by nimbus_cloud
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