Slide 19
Slide 19 text
This work is licensed under the Apache 2.0 License
Various Action of Implicit Intent
val web = Intent(
Intent.ACTION_VIEW,
Uri.parse("http://www.bps.go.id")
)
startActivity(web)
val dialPhoneIntent = Intent(
Intent.ACTION_DIAL,
Uri.parse("tel:081210841382")
)
startActivity(dialPhoneIntent)
And many more …
https://developer.android.com/guide/components/intents-common
val maps = Intent(
Intent.ACTION_VIEW,
Uri.parse("geo:-7.053948,110.4318891,z=15"))
startActivity(maps)
val sms = Intent(
Intent.ACTION_SENDTO,
Uri.parse("smsto:0831")
)
sms.putExtra("sms_body", "Hello, how are you?")
startActivity(sms)