Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/231.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在android中打开短信会话列表_Android_Sms - Fatal编程技术网

在android中打开短信会话列表

在android中打开短信会话列表,android,sms,Android,Sms,我使用此代码在Android中打开SMS对话列表。它在大多数手机中都能很好地工作: Intent intent = new Intent(Intent.ACTION_MAIN); intent.addCategory(Intent.CATEGORY_LAUNCHER); intent.setClassName("com.android.mms", "com.android.mms.ui.ConversationList"); startActivity(intent); 但在某些手机(如Gal

我使用此代码在Android中打开SMS对话列表。它在大多数手机中都能很好地工作:

Intent intent = new Intent(Intent.ACTION_MAIN);
intent.addCategory(Intent.CATEGORY_LAUNCHER);
intent.setClassName("com.android.mms", "com.android.mms.ui.ConversationList");
startActivity(intent);
但在某些手机(如Galaxy S3)中,我会遇到以下错误:


java.lang.SecurityException:权限拒绝:启动Intent{act=android.Intent.action.MAIN cat=[android.Intent.category.LAUNCHER]cmp=com.android.mms/ui.ConversationList}来自ProcessRecord{------------}未从uid 10098导出

猜一猜,您在清单文件中声明了两次ConversationList。检查您的清单文件。

检查此项。GalaxyS3使用定制Android而非“标准版”。而且你不允许启动那个活动

我不明白。什么意思?所有手机的清单都相同。