私の計画は、そのスレッドIDによってSMS会話スレッドを開くことです。Androidは特定のSMSスレッドをスレッドIDで開きます
long threadId = Long.parseLong(THREAD_ID);
Intent defineIntent = new Intent(Intent.ACTION_VIEW);
defineIntent.setData(Uri.parse("content://mms-sms/conversations/"+threadId));
context.startActivity(defineIntent);
しかし、私は次のエラーを取得する:私のコードがある
09-27 16:01:07.696: ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=content://mms-sms/conversations/3 }
誰もがこれで私を助けることはできますか?前もって感謝します。
J Doe;)
http://stackoverflow.com/questions/39678042/how-to-open-sms-intent-to-read-not-send-message –