Apache Felix - Storing bundles in the assests directory of android application -


i embedding apache felix android app. right now, use following code install bundle:

imagebundle = bundlecontext1.installbundle("file:sdcard/download/androidimageviewer_1.0.0.201308221559.jar"); 

this works ok, requires bundle stored in sdcard of android device. however, don't that. want bundle stored in directory inside android project. example, inside assests folder. there way achieve this?

i tried this:

imagebundle = bundlecontext1.installbundle("file:assets/bundles/androidimageviewer_1.0.0.201308221559.jar"); 

and expected, didn't work.

the url wrong. correct url like

file:///android_asset/androidimageviewer_1.0.0.201308221559.jar 

as pointed out here.


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -