Skip to content

Android 13 Intent filters break starting playback on VLC

Starting with Android 13 Google added Intent Filters "security" when calling other applications. (https://medium.com/androiddevelopers/making-sense-of-intent-filters-in-android-13-8f6656903dde)

To have everything working correctly (passing a resume point and getting the intent result) in all Android versions we need to explicitly pass a full component name pointing to VideoPlayerActivity.

The problem is that it's no more possible with Android 13 as the intent filters kick in and block.

Removing the ComponentName or pointing to StartActivity breaks the intent result and we got null result preventing us to get the playback position to save it.

From a quick look startPlaybackFromApp should probably start the VideoPlayerActivity via a startActivityForResult then in onActivityResult of the StartActivity set the result to that result for the result to be propagated back. (But it's just a guess from a quick look I might be missing more)