Google's docs has this example:
Put, the B4A Intent object doesn't have a .setData method. So, how would I be able to do the .setData line in B4A?
B4X:
public void composeMmsMessage(String message, Uri attachment) {
Intent intent = new Intent(Intent.ACTION_SEND);
intent.setData(Uri.parse("smsto:")); // This ensures only SMS apps respond
intent.putExtra("sms_body", message);
intent.putExtra(Intent.EXTRA_STREAM, attachment);
if (intent.resolveActivity(getPackageManager()) != null) {
startActivity(intent);
}
}
Put, the B4A Intent object doesn't have a .setData method. So, how would I be able to do the .setData line in B4A?