I want to open my own application for sending SMS, but there must already be a phone number. I found ACTION_SEND, but when I call my function, it returns an error that:
04-26 11:59:15.991: ERROR/AndroidRuntime(20198): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.SENDTO (has extras) }
My code is presented here:
private void smsSend(String number) { Intent intent = new Intent(Intent.ACTION_SENDTO, null); intent.putExtra(Intent.EXTRA_PHONE_NUMBER, number); startActivity(intent); }
I know this is simple, but I do not know why this does not work, and I cannot find any reference information.
Thanks for any advice.
Robert
source share