The other day, it something like a week ago, I thought of if Varsity(something I’m building) could make a call. So I got down to digging out information. Anyway so, its all got to do with intents. A while ago I did, an email intent, I am mentioning this because its really similar. Basically when describing the intent you pass in the parameter Intent.ACTION_CALL.
Maybe to understand this you have to put into consideration what an intent is. Intents are the little messages that are passed in between Activities, say like in this case between our app and the phone app. We first have to describe this – that it will launch the call.
String num="0123456789"; Intent callIntent = new Intent(Intent.ACTION_CALL); callIntent.setData(Uri.parse("tel: " + num)); startActivity(callIntent);
That should do it.