0

I'm working on an app that launches an activity on an external display. When I load the layout inspector in Android Studio I can only see the layout for Activity B (on the external) and want to see the layout for Activity A (on the device).

Activity A:

val options = ActivityOptions.makeBasic()
options.launchDisplayId = displayId // from DisplayManager
val intent = Intent(appContext, ActivityB::class.java)
intent.addFlags(Intent.FLAG_ACTIVITY_LAUNCH_ADJACENT or Intent.FLAG_ACTIVITY_NEW_TASK)
appContext.startActivity(intent, options.toBundle())

I'm using Android Studio Dolphin | 2021.3.1 Patch 1. I haven't tried Electric Eel yet.
Is there any way to control which layout loads in the inspector?

0 Answers0