Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android tv leanback application list

As part of developing a custom launcher application for Android TV, I have to show an apps list side screen based on installed apps list in the device.

To open the notifications screen on the device there is a simple action: "com.android.tv.action.OPEN_NOTIFICATIONS_PANEL"

String notificationAction = "com.android.tv.action.OPEN_NOTIFICATIONS_PANEL";
Intent openNotificationPanel = new Intent();
openNotificationPanel.setAction(notificationAction);
startActivity(openNotificationPanel);

Unfortunately after searching on the network, I did not find the appropriate action to open a screen of the list of applications.

I understood that there should be an intent action that would give me the complete list of apps installed.

It would be very helpful if someone can share the right intent action for this matter.

like image 594
G. Osher Avatar asked Apr 23 '26 22:04

G. Osher


1 Answers

Eventually I figured that google has added an action intent from sdk version 28 (pie) -

    Intent.ACTION_ALL_APPS

The implementation -

    Intent openAllAppsScreenIntent = new Intent(Intent.ACTION_ALL_APPS);
    startActivity(openAllAppsScreenIntent);
like image 76
G. Osher Avatar answered Apr 26 '26 13:04

G. Osher