Anyone has solved? This is a bad limitation... On Jul 31, 11:09 pm, flohier <[email protected]> wrote: > I was told to suggested to import the ITelephony.aidl file from the > kernel and invoke thecall() (or answerRingingCall() directly - which > is not elegant but seems to be an option. > > The problem I have trying this is to get a pointer to telephony > service form my activity: > > ITelephony sPhone = ITelephony.Stub.asInterface > (ServiceManager.checkService("phone")); > ITelephony phoneServ = getPhoneInterface(); > > This code does not work betcause the ServiceManager is not exposed by > the SDK so I don't know how to bind the aidl interface of ITelephony I > imported from the kernel. > > On Jul 29, 12:20 am, Ola <[email protected]> wrote: > > > > > > So my question is: does anyone know how I could programmatically exit > > > thecalllog activity as ways to be able to submit another ACTION_CALL > > > intent ? > > > I am also interested in this same thing. I would like to > > programmatically exit the DialtactsActivity from my service and return > > to the home screen. > > > BR, > > //Ola > > > On Jul 26, 3:45 pm,flohier<[email protected]> wrote: > > > > Dear All, > > > > I wrote an app that places an outgoingcallvia the ACTION_CALL > > > intent. > > > > After thecallis placed, the dialer enters thecalllog window and at > > > that point, my application cannot re-submit an outgoingcallwithout > > > having the user exit thecalllog activity. > > > > From the kernel source, InCallScreen.java shows implements the > > > delayedCleanupAfterDisconnect() method where one can read: > > > > ..... > > > > // If this is acallthat was initiated by the user, > > > and > > > // we're *not* in emergency mode, finish thecallby > > > // taking the user to theCallLog. > > > // Otherwise we simplycallfinish(), which will take > > > us > > > // back to wherever we came from. > > > if (mShowCallLogAfterDisconnect && ! > > > isPhoneStateRestricted()) { > > > if (VDBG) log("- ShowCallLog after > > > disconnect..."); > > > final Intent intent = PhoneApp.createCallLogIntent > > > (); > > > startActivity(intent); > > > // Even in this case we stillcallfinish() > > > (below), > > > // to make sure we don't stay in the activity > > > history. > > > } > > > > finish(); > > > > The mShowCallLogAfterDisconnect is a boolean also in InCallScreen.java > > > that reads: > > > > // Flag indicating whether or not we should bring up theCallLog > > > when > > > // exiting the in-callUI due to the Phone becoming idle. (This > > > is > > > // true if the most recently disconnectedCallwas initiated by > > > the > > > // user, or false if it was an incomingcall.) > > > // This flag is used by delayedCleanupAfterDisconnect(), and is > > > set by > > > // onDisconnect() (which is the only place that either posts a > > > // DELAYED_CLEANUP_AFTER_DISCONNECT event *or* calls > > > // delayedCleanupAfterDisconnect() directly.) > > > private boolean mShowCallLogAfterDisconnect; > > > > If I trust the comment properly, the dialer will enter thecalllog > > > activity unless we had an incomingcalltriggering InCallScreen. I > > > presume that by "callwas initiaited by the user" also means other > > > activity invoking ACTION_CALL. > > > > So my question is: does anyone know how I could programmatically exit > > > thecalllog activity as ways to be able to submit another ACTION_CALL > > > intent ? > > > > Thanks for any pointers or suggestions here.- Hide quoted text - > > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

