![]() To make a call you have to put down this code in your app. Here I will show you that how you can make a phone call from your activity. So it would be better to use ACTION_CALL with a permission (see Revoked permission _PHONE). Or val intent = Intent(Intent.ACTION_DIAL, Uri.fromParts("tel", "+123456", null))īut it shows one more dialog (asking whether you want to call phone just once or always). val intent = Intent(Intent.ACTION_DIAL, Uri.parse("tel:+123456")) If call is drop then, you should pass more ", " between numbers.ĭO you have update your manifest file in order to give call rights ? Intent intent = new Intent(Intent.ACTION_CALL) Tried this on my phone and it works perfectly. It doesn't do anything.ĭon't forget to add the relevant permission to your manifest: An Application can call many built-in Applications, which are included with an Android device. tData(Uri.parse("tel:" + bundle.getString("mobilePhone"))) Īn intent by itself is simply an object that describes something. One of the key aspects of Android programming is using the intent to call activities from other Applications. It should look like this: Intent intent = new Intent(Intent.ACTION_CALL) ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |