Felix's behaviour is correct, because you have not started any of the bundles. If you do not start them, then there is no need to resolve them, and therefore they stay in the INSTALLED
state.
In order for your application to actually do anything, you will need to start the bundles. You should do this after you have installed all of the bundles... that is, you should install all bundles before you start any bundles. The easiest way to do this is to accumulate the Bundle
objects returned by installBundle()
into a list, and then do a second loop over this list calling Bundle.start()
.