in this tutorial I'm gonna teach her something useful if you want to make your contacts or communication out and that is how to make phone calls and Android start by going to the Android manifest file underneath the manifest folder and the reason for this is because we want to request permission in order to make the phone call if you don't know about Android manifest I recommend that you check out my video on requesting permissions it's a another tutorial that I have but now we're gonna say use this permission and for the name that's basically going to be the permission that we want which is call phone now that we have that you're going to head on over to mean activate Java and if you're wondering what this bit of code is over here is I created a little card view have another tutorial on that so make sure to check it out but this card view serves as a button because I want to be able to press the button and then it asks if I want to make the phone call I don't want it to make the phone call in the oncreate right when the app is launched the way that we're going to make the phone calls by using an intent which I've covered in a previous tutorial I've already linked to that in the information section above to create the intent we say intent and we can call it call intent now we're going to create a constructor for the intent and inside I'm going to say intent action call and this is specifying that the type of intent that we have is a calling intent now I'm going to do something important by saying call intent that set data and what the purpose of this is is to pry the phone number that we want to call for the purposes of demonstrating the app and how to make a phone call I'm just gonna pry two random phone number to show that the app is trying to call that I don't think it's a real phone number though finally before I actually placed a call I want to check whether that app even has permission whether the user granted the permission so I'm gonna say if activity comp add the check self permission if you do command P you can see way to provide context I'm gonna say get application context and now we're to pry the permission as a string manifest without permission the manifest of permission call phone we want to check if the permission has not been granted so if not equal to package manager package manager dot pyramus not premature not permission granted then if it's not granted what we want to do is request the permission and the way that we do that it's by saying activity comp at dot request permission if you do command P once again you can see the parameters one of them is our class so mean activity got this and it's asking for a string array of position of permission so a new string and now I am going to put the elements into the array by saying manifest our permission dot call phone and finally the last thing that I have to provide is a request code if you're wondering what a request code is is it's it's basically used in an overridden method called on request permission results and you can use that to process what the user responded to when they were asked to grant permission so I covered the if case where it's not granted now in the case that it actually is granted all I have to do is just basically start activity start that intent pressing start activity and then calling start activity and then calling the intent which is call intent now I'm going to run this when I tap on my card view you can see that it's asking for permission if I click deny then it knows that the permission was denied so once again when I click on here it's going to request permission because it knows that the permission had not been granted finally if I do grant permission by clicking allow and I tap again it should make the phone call and as you can see it's starting to call this random phone number and I'm gonna end a call I hope that he founds tutorial useful and now you know how to place calls in your Android app if you have any questions comment down below and as always don't forget to subscribe