The easiest method is to create an intent which opens the device caller dialog. Because this is not actually initiating the call, no additional permissions are required by your app.
final String phoneNumber = "01234 123456"; startActivity(new Intent(Intent.ACTION_DIAL, Uri.parse("tel:" + phoneNumber)));
Android dialler intent |
0 comments:
Post a Comment