I am developing an android app for calling a number. I am using FrameLayout
instead of activity. When i using this code
Uri number = Uri.parse("tel:123456789");
Intent callIntent = new Intent(Intent.ACTION_CALL_BUTTON);
callIntent.setData(number);
callIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
getContext().startActivity(callIntent);
Then it shows the error
android.content.ActivityNotFoundException: No Activity found to handle
Intent { act=android.intent.action.CALL_BUTTON dat=tel:xxxxxxxxx
flg=0x10000000 }
I
--
You received this message because you are subscribed to the Google Groups
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit
https://groups.google.com/d/msgid/android-developers/4d1fd742-8702-412e-ac80-580de680ff3d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.