Creating multiple activity views on home screen

413 views
Skip to first unread message

Vinayak Soni

unread,
Aug 20, 2021, 9:25:01 AM8/20/21
to Android Automotive OS Discussion Group
Hi all,

When creating multiple activity views on home screen, I am able to get focus only on the view that was created first in the layout (constraint layout is used here). Is there a possible reason for that? Here is a snippet of the logcat logs:

08-07 03:33:32.223  1984  1984 I wm_on_top_resumed_lost_called: [218875999,com.google.android.maps.MapsActivity,topStateChangedWhenResumed]
08-07 03:33:32.224  2309  2309 I wm_on_top_resumed_gained_called: [156555216,com.example.carlauncher3.CarLauncher,topStateChangedWhenResumed]
08-07 03:33:41.226   374   397 W InputDispatcher: Focused display #2 does not have a focused window.
08-07 03:33:41.227   374   397 E InputDispatcher: But another display has a focused window:
08-07 03:33:41.227   374   397 E InputDispatcher: Display #0 has focused window: 'Window{2a7eef9 u10 com.example.carlauncher3/com.example.carlauncher3.CarLauncher}'
08-07 03:33:41.228  2309  2309 I wm_on_top_resumed_lost_called: [156555216,com.example.carlauncher3.CarLauncher,topStateChangedWhenResumed]
08-07 03:33:41.237  1984  1984 I wm_on_top_resumed_gained_called: [218875999,com.google.android.maps.MapsActivity,topStateChangedWhenResumed]

Whenever I click on Maps, I get a focus but when I click on the other activity view, I do not get the focus. Codewise, I have just added another acitivity view and removed the contextual and play fragments in the packages/apps/Car/Launcher app.

Thanks in advance,
Vinayak
Reply all
Reply to author
Forward
0 new messages