January 2018
Intermediate to advanced
434 pages
14h 1m
English
Let's see the source code of makeCall function:
fun Context.makeCall(number: String): Boolean { try { val intent = Intent(Intent.ACTION_CALL, Uri.parse("tel:$number")) startActivity(intent) return true } catch (e: Exception) { e.printStackTrace() return false }}
Beneath the wrapper, it's doing the same old way Android SDK used to do, that is, using an implicit intent of action Intent.ACTION_CALL.
Read now
Unlock full access