Hi,

I have not tried this, but it seems to me that you use the
ACTION_CALL_BUTTON in your code, rather than the ACTION_ANSWER, and
you should probably broadcast it using Context.sendBroadcast rather
than startActivity. Just my cents.

Regards

Andreas

On Mar 18, 7:40 am, midoub <[email protected]> wrote:
> hello,
> I know this is not the good forum to post my question, but I need help
> and I spend 3 days to try to find solution ,but no way:(.
> I'm trying to develop application that can answer incoming call
> automatically.
> In my code I use the intent "Action_Anwser"  but it's seem not work.
> The snippet of my code
> :::::::::
>         public void onCallStateChanged(int state, String incomingNumber) {
>                         super.onCallStateChanged(state, incomingNumber);
> :::::
>  Intent intent = new Intent(Intent.ACTION_CALL_BUTTON);
>                             intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
>                                startActivity(intent);
> ::::
> Maybe I had forget the permission in manifest or somthing like this!!!
> Thanks for your help.
> best regards,

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to