So I have a secondary Activity but I don't want to make it visible on home screen on app install, so it doesn't have Main action and Launcher category declared in the manifest:
<!--<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>-->
A user can add it manually if needed:
val shortcutInfo =
ShortcutInfo.Builder(appContext, key)
.apply {
setShortLabel(getString(R.string.app_name))
setLongLabel(getString(R.string.app_name))
setIcon(
Icon.createWithResource(
appContext,
R.mipmap.ic_launcher
)
)
setIntent(activityIntent)
}.build()
shortcutManager.requestPinShortcut(shortcutInfo, null)
but the problem that such shortcuts are not visible for Samsung Bixby (or similar assistants on other phones) for launching as an app by pressing the Bixby button
Is there a way to launch secondary activities from Bixby without declaring those activities as main launchers in manifest?