I have developed an app that creates predefined messages. I use the following code to open the users default texting app with the body of the text predefined:
Is it possible to open the user's default texting app with the user's most recent calls received displayed? Users of my app would find it desirable to select one of the most recent phone calls with which to send a predefined text. My current workaround is to require a recent caller to text the user.
Java:
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse("smsto:")); // This ensures only SMS apps respond
intent.putExtra("sms_body", textStr);
if (intent.resolveActivity(getPackageManager()) != null) {
startActivity(intent);
}
Is it possible to open the user's default texting app with the user's most recent calls received displayed? Users of my app would find it desirable to select one of the most recent phone calls with which to send a predefined text. My current workaround is to require a recent caller to text the user.