开发者

How to terminate a call programmatically under Android?

开发者 https://www.devze.com 2023-01-18 13:49 出处:网络
I am using the followi开发者_如何学编程ng code for dialing programmatically under Android. try {

I am using the followi开发者_如何学编程ng code for dialing programmatically under Android.

try {
    Intent callIntent = new Intent(Intent.ACTION_CALL);
    callIntent.setData(Uri.parse("tel:123456789"));
    startActivity(callIntent);
} catch (Exception exception) {
    log.e("dialing-example", "Call failed", Exception);
}

But how can I terminate the call programmatically?


You can't terminate in progress calls programatically.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号