我遵循这段代码:
Intent intent = new Intent(Intent.ACTION_MAIN);
intent.addCategory(Intent.CATEGORY_DEFAULT);
intent.setType("vnd.android-dir/mms-sms");
startActivity(intent);
它适用于Android 5.1,但不适用于Android 6.0,因为android.content.ActivityNotFoundException: No Activity found to handle Intent
,那么如何通过隐式意图打开短信应用程序?
编辑:
你看了我的帖子吗?我需要打开应用程序,而不是发送消息。
我检查了这个帖子,但它不起作用!