I have an app that accepts shared data from other apps.
So in my onCreate(...)
function, I have
intent.extras?.getString("android.intent.extra.TEXT")?.let{query -> someCallback(query)}
This works fine if my app has not been started yet. However, I also want to call someCallback
when data is shared after my Activity has already been created? How do I hook into the event of receiving shared data from another app?