I am embedding Apache Felix into an android app. Right now, i use the following code to install a bundle:
imageBundle = bundleContext1.installBundle("file:sdcard/Download/AndroidImageViewer_1.0.0.201308221559.jar");
This works OK, but it requires the bundle to be stored in the sdcard of the android device. However, I don't like that. I want the bundle to be stored in a directory inside the android project. For example, inside the assests
folder. Is there a way to achieve this?
I tried this:
imageBundle = bundleContext1.installBundle("file:assets/bundles/AndroidImageViewer_1.0.0.201308221559.jar");
and as expected, it didn't work.