android - CallLog.Calls.getLastOutgoingCall Error in Api 15 -


i tried last outgoing call contact , when used:

calllog.calls.getlastoutgoingcall 

but error occurred. api level 15, tested in android api 22 , worked fine(in documentation said added in api 8).

i found it, add below manifest:

<uses-permission android:name="android.permission.read_call_log" /> <uses-permission android:name="android.permission.read_contacts" /> 

Comments

Popular posts from this blog

html - Difficulties with background-image property -

visual studio code - What does the isShellCommand property actually do and how should you use it? -

ios - Segue not passing data between ViewControllers -