Reputation: 485
Just like the title says, I've tested that many times with no changes in several devices but customers still mention that it only dials, they sit there in the dialer app with the number on screen but they have to press the 'call' button to make it. I believe few of the models are Samsung and it goes from 2.3.x to 4.0.x.
Why's that?? It's driving me crazy and also I don't even use the ACTION_DIAL
intent action.
Here's the code:
private void call(String phoneNumber) {
Intent call = new Intent(Intent.ACTION_CALL);
call.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
call.setData(Uri.parse("tel:" + phoneNumber));
context.startActivity(call);
}
Permission's there, and the phone number is valid because it's shown in the dial screen as expected.
Thanks in advance.
Upvotes: 0
Views: 1186
Reputation: 3150
As far as I know that's the expected behaviour. In my opinion that's a security feature so applications will not auto dial numbers where the customer will pay extra charges for example. This way he can still change his mind even if the app had permission to start the dialler.
So far I've never seen a phone that automatically dials it.
Upvotes: 1