나는 이것을 찾으면서 이것에 대해 많은 스레드를 발견했습니다. 그러나 일은 나를 위해 일하지 않습니다. "exit_on_sent"설정을 시도하고 startAcitivityForResult를 사용하여 시도했습니다. 다음은 시도한 코드입니다의도를 사용하여 SMS를 보낸 후 내 응용 프로그램으로 돌아 가기
Intent sendIntent = new Intent(Intent.ACTION_VIEW);
sendIntent.setData(Uri.parse("smsto:" + phoneNumbers)); // phoneNumbers is a list of phone numbers to which i need to send messages at the same time
sendIntent.putExtra("sms_body", context.getResources().getString(R.string.message_body));
sendIntent.putExtra("exit_on_sent", true);
context.startActivity(sendIntent);
먼저 [문서] (https://developer.android.com/guide/components/intents-common.html#Messaging)에서 다루는대로 ACTION_SENDTO를 사용하십시오. 둘째, ** 자세히 설명해주십시오 ** "나를 위해 일하지 않는 것"이란 것을 의미합니다. – CommonsWare
답장을 보내 주셔서 감사합니다. 귀하의 제안을 시도하고 ACTION_VIEW 대신 ACTION_SENDTO를 사용했지만 내 문제는 메시지를 보낸 후에 내 응용 프로그램이 의도 한 곳에서 다시 시작하지 않는다는 것입니다. 메시징 응용 프로그램은 메시지를 보낸 후에도 볼 수 있습니다. 내 요구 사항은 메시지를 보낸 후 내 응용 프로그램으로 돌아가는 것입니다. NB : 사용자 상호 작용으로 메시지를 보내고 싶습니다. 또한 한 번에 여러 사람에게 메시지를 보내려고합니다. – Rino