Is it possible to get the result of sending SMS from another activity?

I have a function in my application that allows the user to send sms and then register their use. But instead of developing our own SMSHandler, we allow the user to choose any SMS application that they want to use. All this seems fine, but I could not find a way to get a response from another SMS application, for example, the mentioned mention of PendingIntent in this article.

http://www.android10.org/index.php/articlesfullapplications/241-sms-messaging-in-android-send-and-receive

Is there any way to do this? This is how I request SMS activity.

    Intent sendIntent = new Intent(Intent.ACTION_VIEW);
    sendIntent.putExtra("sms_body", "Hello SMS"); 
    sendIntent.setType("vnd.android-dir/mms-sms");
    startActivity(sendIntent);
+3
source share

Source: https://habr.com/ru/post/1789967/


All Articles