3

In API level 21 LauncherActivityInfo was introduced.

I currently have to implement a program which uses the getApplicationInfo(), getBadgedIcon(), getLabel() and getIcon().

I have searched on stackoverflow and on google and I cannot seem to find something suitable as a replacement. I have to support API level 19. Using this class is not possible .... Does anyone have any suggestions ?

Link to Class

LauncherActivityInfo

Cœur
  • 37,241
  • 25
  • 195
  • 267
Lind
  • 277
  • 2
  • 5
  • 16
  • 1
    take a look at `platform/packages/apps/Launcher3` source ... especially `compat` folder ... – Selvin Feb 23 '16 at 12:02
  • 1
    The concept of `getBadgedIcon()` simply does not exist on earlier API levels. The rest of the information can be obtained from `PackageManager`, if you use `queryIntentActivities()` to find the `MAIN`/`LAUNCHER` activities. – CommonsWare Feb 23 '16 at 12:02
  • @Selvin I am already looking at the source code for the cyanogen launcher, CommonsWare I will check that out – Lind Feb 23 '16 at 12:29

0 Answers0