Mehedi Hassan Piash | Senior Software Engineer | Android | iOS | KMP | Ktor | Jetpack Compose | React-Native.

March 23, 2021

Data communication in Activity to Activity

March 23, 2021 Posted by Piash , No comments
 Extension function for data communication in activity to activity  inline fun <reified T : Activity> Context.openActivity(vararg params: Pair<String, Any>) { val intent = Intent(this, T::class.java) intent.putExtras(*params) this.startActivity(intent) } fun Intent.putExtras(vararg params: Pair<String, Any>): Intent { if (params.isEmpty()) return...