问题
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