It seems that getApps() can currently return some duplicates. I called said function in an app running on emulator of Android Studio and got entries with labels Google and Voice Search with the same package name com.google.android.googlequicksearchbox.
Now, I don't know if this is intentional feature and I don't have time to look into this deeper now, but someone suggested using getInstalledApplications instead of queryIntentActivities here: https://stackoverflow.com/a/17238992. Maybe you know better what is happening here and if having duplicate list items is even possible with third party apps, as com.google.android.googlequicksearchbox is Google's own package.
Thanks for developing this great package!
It seems that
getApps()
can currently return some duplicates. I called said function in an app running on emulator of Android Studio and got entries with labelsGoogle
andVoice Search
with the same package namecom.google.android.googlequicksearchbox
.Now, I don't know if this is intentional feature and I don't have time to look into this deeper now, but someone suggested using
getInstalledApplications
instead ofqueryIntentActivities
here: https://stackoverflow.com/a/17238992. Maybe you know better what is happening here and if having duplicate list items is even possible with third party apps, ascom.google.android.googlequicksearchbox
is Google's own package.