Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to display a dial pad

Tags:

android

how would I open the Dialpad and get the Number that the User like to call. So I can do a check with it before I dial it from my Source?

If possible, with a small example.

Thanks Anshuman

like image 433
AndroidDev Avatar asked Jun 23 '11 07:06

AndroidDev


People also ask

How do I get my dialer back on my Android?

Did you disable the Dialer? If so, go to Settings>Apps>Disabled, select Dialer, and tap Enable. If there isn't a Disabled list, go to Settings>Apps>All​, and scroll all the way to the bottom to find the Disabled apps. In Samsung the app is called "Phone" that you want to restore/add back to your home screen.


1 Answers

try this code

Intent dial = new Intent();
dial.setAction("android.intent.action.DIAL");
dial.setData(Uri.parse("tel:"+dial_number));
startActivity(dial); 
like image 117
kannappan Avatar answered Oct 03 '22 23:10

kannappan