>From my application I am currently launching the dialer:

newCallIntent = new Intent(Intent.ACTION_DIAL);
PhoneCallReciever receiver = new PhoneCallReciever();
telephonyManager.listen(receiver,
PhoneStateListener.LISTEN_CALL_STATE);
startActivityForResult(newCallIntent, DIAL_RESULT);

Then I have a listener:

public void onCallStateChanged(int state, String incomingNumber) {
                        String stateString = "N/A";
                        switch (state) {
                        case TelephonyManager.CALL_STATE_IDLE:
                                stateString = "Idle";
                                IBinder wmbinder = 
ServiceManager.getService("window");
                                Log.i(LOG_TAG, "WindowManager: " + wmbinder);
                                IWindowManager wm = 
IWindowManager.Stub.asInterface(wmbinder);
                                keyUpDown(wm, KeyEvent.KEYCODE_BACK);

                                break;
}
}

The goal is to then watch the call and when the phone goes IDLE I
would like to switch back to the application. How can I do this?
Thanks!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to