Skip to content

Instantly share code, notes, and snippets.

@kohendrix
Created February 2, 2019 04:19
Show Gist options
  • Select an option

  • Save kohendrix/a9f118fe7597207bcc2783867ad477a7 to your computer and use it in GitHub Desktop.

Select an option

Save kohendrix/a9f118fe7597207bcc2783867ad477a7 to your computer and use it in GitHub Desktop.
ReproSample
class DeepLinkTargetTWOActivity : AppCompatActivity() {
companion object {
const val EXTRA_TEXT = "text"
}
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_deeplink_two)
findViewById<TextView>(R.id.tv_to_replace).text = intent.getStringExtra(EXTRA_TEXT) ?: "text not passed"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment