java.lang.Object | |
↳ | com.android.phone.CallLogAsync |
Class to access the call logs database asynchronously since database ops can take a long time depending on the system's load. It uses AsyncTask which has its own thread pool.
Typical usage: ============== // From an activity... String mLastNumber = ""; CallLogAsync log = new CallLogAsync(); CallLogAsync.AddCallArgs addCallArgs = new CallLogAsync.AddCallArgs( this, ci, number, presentation, type, timestamp, duration); log.addCall(addCallArgs); CallLogAsync.GetLastOutgoingCallArgs lastCallArgs = new CallLogAsync.GetLastOutgoingCallArgs( this, new CallLogAsync.OnLastOutgoingCallComplete() { public void lastOutgoingCall(String number) { mLastNumber = number; } }); log.getLastOutgoingCall(lastCallArgs);
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CallLogAsync.AddCallArgs | Parameter object to hold the args to add a call in the call log DB. | ||||||||||
CallLogAsync.GetLastOutgoingCallArgs | Parameter object to hold the args to get the last outgoing call from the call log DB. | ||||||||||
CallLogAsync.OnLastOutgoingCallComplete | Interface to retrieve the last dialed number asynchronously. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Non blocking version of CallLog.addCall(...)
| |||||||||||
CallLog.getLastOutgoingCall(...)
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Non blocking version of CallLog.addCall(...)
CallLog.getLastOutgoingCall(...)