David
David

Reputation: 111

How open function call phone but don't set phone number default

I want open function call phone of android but don't set phone number default as

Intent callIntent = new Intent(Intent.ACTION_CALL);
            callIntent.setData(Uri.parse("tel:09340125465"));
            startActivity(callIntent);

I want to open call phone and after input phone number.

Hope you me. Thanks.

Upvotes: 1

Views: 249

Answers (1)

iTurki
iTurki

Reputation: 16398

Use this code:

Intent callIntent = new Intent(Intent.ACTION_DIAL);
callIntent.setData(Uri.parse("tel:"));
startActivity(callIntent);

Upvotes: 1

Related Questions