开发者

how to create Intent.ACTION_CALL_PRIVILEGED from code in android?

开发者 https://www.devze.com 2023-03-12 22:25 出处:网络
I was following this开发者_JAVA百科 post to create a call. I know I can use ACTION_CALL/ACTION_DIAL but they will not meet my need. It suggested that I need to use @hide annotation. I was wondering ho

I was following this开发者_JAVA百科 post to create a call. I know I can use ACTION_CALL/ACTION_DIAL but they will not meet my need. It suggested that I need to use @hide annotation. I was wondering how to do that.

(sdk 2.2) When I put the following code in eclipse shows red mark under Intent.ACTION_CALL_PRIVILEGED.

Intent intent = new Intent(Intent.ACTION_CALL_PRIVILEGED,
Uri.fromParts("tel", number, null)); startActivity(intent);
0

精彩评论

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