The ability to use app identifier to retrieve Bitmap (and other info)

When I am active within a widget, I want to retrieve information about apps. The most important one is the icon. This can be done with notifications, but otherwise I cannot get the bitmap for dynamic (global) widgets. With that I also want to know if a specific application is installed, running, memory, etc.....