I believe ACTION_CALL_BUTTON is used on intent-filters to detect if the
call button on the standard dial has been pressed. I.E. an app for a
company that wants to detect if the user is calling the company or a shady
app that gets some analytics from the user. It's not that usual.So perhaps
there is no app installed that's listening for that action.
If you want to open the standard phone app with that number preloaded, you
should use ACTION_DIAL.

Marina

On Thu, Jan 19, 2017 at 11:00 AM, Fazil T.M <t.mfa...@gmail.com> wrote:

> 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 android-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to android-developers@googlegroups.com.
> 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
> <https://groups.google.com/d/msgid/android-developers/4d1fd742-8702-412e-ac80-580de680ff3d%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
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/CACaNmX2O1sfrNorn%3DTLCe0w6Mxsgo%2BWDzNdEAb59VL%3Dt%3DXRqOQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to