如何以编程方式打开默认的SMS收件箱活动?

时间:2012-05-29 15:34:25

标签: android android-intent sms inbox

我想点击我的应用程序中的按钮,在Android中打开默认的短信收件箱。我不想创建自己的活动来显示收件箱邮件。我搜索了很多链接但找不到解决方案。

2 个答案:

答案 0 :(得分:3)

查看此问题:launch sms application with an intent。您可以尝试多种回复。

答案 1 :(得分:2)

Intent intent = new Intent(Intent.ACTION_MAIN);
intent.addCategory(Intent.CATEGORY_LAUNCHER);
intent.setClassName("com.android.mms", "com.android.mms.ui.ConversationList");