I've seen many stackoveflow answers in the same topic, but all of them (atleast the ones I've checked) suggest to use intent-filter with the data tag in Android.manifest file.
I'm wondering if it is possible to do this in code? Maybe in the onCreate of the activity.
Some answers I've checked are: