So a bit of backstory as to what i'm trying to do. I'm working on an idea for an app which can scan what apps are on your phone, the bar codes of groceries and other things and display information on what environmental impact they have.
So what i'm trying to do is see if there is a way to pull a list of all the installed apps of an android phone, and for me to then be able to match these apps up with information I will gather (still figuring that bit out).
I'm working in android studio and had a look through the forums here but the ones I found weren't really what I was looking for because they specified running apps.
You can get information about installed apps via PackageManager
See docs