Search code examples
androidandroid-intentcalllog

Android: How to fire CallDetailActivity intent?


I am super new to android, how to fire CallDetailActivity intent?

From LogCat:

Intent {dat=content://call_log/calls/48 cmp=com.android.contacts/.CallDetailActivity}

48 is the id, from CallLog.

How do I construct the intent to fire the event like above? given id

Regards,

Johnny


Solution

  • Create an ACTION_VIEW Intent with the Uri to the call. If all you have is just the ID, try using ContentUris and withAppendedId() to add your ID to CallLog.Calls.CONTENT_URI.