I need help verifying that an application is installed on the user's device.
Situation 1: I need to search the user's cell phone and check if there are some applications installed. If you find these applications installed, return a list of applications through a method.
Situation 2: Make available this list of installed applications to be consumed by another application.
How can I do this?