• Call Log
In the final of this section which present how do we
obtain the call logs stored in phone. Due to use the API
android.provider.CallLog.Calls which can extract the
Number, Type, Date and Duration from phone. Number
means the phone number as the user entered it; Type means
the type of the call (incoming, outgoing or missed). In
addition, Date describes the date the call occured, in
milliseconds and Duration offers the duration of the call in
seconds. In these codes, we also use getContentResolver
to return a ContentResolver instance for the application of
user's package. The detail codes are described in Figure 2.