Android Question Launch intent default SMS Inbox

F.Campanella

Member
Licensed User
Hi,
I've need to launch through a button in my activity the default app that visualize the list of inbox-sms.

When I've need to view the call_log I used this code:

Dim i As Intent
i.Initialize (i.ACTION_VIEW, "content://call_log/calls")
StartActivity(i)

What code should I use to open the list of received messages?

Thanks in advance
Fabio.
 

F.Campanella

Member
Licensed User
Thanks Erel for your quick answer...

I have resolved for this code:

Dim i As Intent
i.Initialize(i.ACTION_MAIN, "")
i.SetType("vnd.android-dir/mms-sms")
i.SetComponent("com.android.mms.ui.ConversationList")
StartActivity(i)

This code works correctly for all default devices. For Samsung Galaxy the SetComponent change to
"com.android.mms.ui.ConversationComposer"

However, I do not think that works on all devices. I solved it on my device anyway;)

regards!!!
 
Top