I have an Activity which launches Dialer with specified number. After the user finishes the call, it will return to my activity. How should I get the information of the call that the user made. ie Call duration ..
I have an Activity which launches Dialer with specified number. After the user finishes
Share
Yes, check the call logs. You can easily access this. Do something like,
Define,
public Cursor mCallCursor;
Then define the fields you want to obtain from the call log,
Set the order,
public static final String STR_ORDER = android.provider.CallLog.Calls.DATE + ” DESC”;
Call the cursor.