The Android app would need to support deep linking. Then I can execute adb shell to start the app from an arbitrary screen with parameters1.
adb shell am start -a android.intent.action.VIEW -d '"io.github.lydavid.musicsearch.debug://app/lookup?query=tsukuyomi&type=artist"'
The above will open the MusicSearch app, and enter a search query for “tsukuyomi” under the artist resource.
Right now, I save a collection of deep links for testing purposes in a Markdown file: https://github.com/lydavid/MusicSearch/blob/beta/docs/testing/deep_links.md
By adding shell to the code block, I can execute the adb command with Android Studio’s gutter icon.
