How to display the dial pad

how can I open Dialpad and get the number that the user wants to call. So can I check with him before I dial him from my source?

If possible, with a small example.

Thanks Anshuman

+5
source share
3 answers

try this code

Intent dial = new Intent();
dial.setAction("android.intent.action.DIAL");
dial.setData(Uri.parse("tel:"+dial_number));
startActivity(dial); 
+14
source

Use the following code:

startActivity(new Intent(Intent.ACTION_DIAL, Uri.parse("tel:6365551212")));

see link for reference.

+4
source

If you mean the phone number on the keyboard, you can simply use it:

EditText editText=new EditText(context);
editText.setInputType(InputType.TYPE_CLASS_PHONE); 

therefore, every time a user tries to enter data, a keyboard screen will appear on the screen panel.

+1
source

All Articles