Skip to content

Launch VLC via .StartActivity so its media library initializes - #397

Closed
shaochew wants to merge 1 commit into
google-research:mainfrom
shaochew:pr/vlc-start-activity
Closed

shaochew wants to merge 1 commit into
google-research:mainfrom
shaochew:pr/vlc-start-activity

Conversation

@shaochew

Copy link
Copy Markdown

Fixes #191.

open_app('vlc') maps to org.videolan.vlc/.gui.MainActivity. Starting that activity directly skips VLC's launcher path, so VLC's media library service never starts. The app stays on "Loading..", the playlist table is never created, and VlcCreatePlaylist cannot save a playlist. The agent does the task correctly and still fails.

This change maps VLC to its launcher entry, org.videolan.vlc/.StartActivity. That activity starts the media library service and then opens the main UI.

Testing: on an AndroidWorld emulator, VLC launched through the old mapping stayed on "Loading.." and playlists did not persist. With .StartActivity, the media library loads and VlcCreatePlaylist passes. adb_utils_test passes.

open_app('vlc') started org.videolan.vlc/.gui.MainActivity directly. That
activity never starts VLC's media library service, so the app stays on
"Loading.." and VlcCreatePlaylist cannot save a playlist (the playlist
table is never created). The launcher entry .StartActivity starts the
service first. Fixes google-research#191.
@google-cla

google-cla Bot commented Nov 15, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@shaochew shaochew closed this Nov 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] db not exist when initialize the task VlcCreatePlaylist

1 participant