How to make a phone call programatically without Intent

与世无争的帅哥 提交于 2020-01-05 02:51:08

问题


I'm new on android and i want make phone call without use the intent.

I know that this code:

Intent intent = new Intent(Intent.ACTION_CALL);

intent.setData(Uri.parse("tel:" + bundle.getString("mobilePhone")));
context.startActivity(intent);

Can i make call in android programmatically without use "Intent"?

Do you have any answer?

Thanks


回答1:


Can i make call in android programmatically without use "Intent"?

Not from an ordinary Android SDK app. A custom ROM mod certainly could.




回答2:


You can't, and that's a security feature.

See http://developer.android.com/reference/android/content/Intent.html#ACTION_CALL and http://developer.android.com/reference/android/content/Intent.html#ACTION_DIAL



来源:https://stackoverflow.com/questions/25242909/how-to-make-a-phone-call-programatically-without-intent

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!