On 4/28/10 13:41, Jackson, Bruce wrote:
Hi All I have Felix embedded into an Android app, and I'm trying to export the packages from the Android environment (e.g. android, android.app, etc) into Felix. I have a couple of questions: first, can I still use the pre-4.2 constructor: Felix felix = new Felix(Properties props); ...and if I do so passing in a properties file which contains a semicolon-seperated list of packages as per the attached, should I see this working properly?
Which version of the framework are you using? Should be fine for 2.0.x since it needs a Map and Properties is a Map...however, some of the property names have changed since they were standardized in R4.2.
Felix starts ok, but when I try to deploy any bundles to it (for example a dexified org.apache.log4j) I get a message fro the debugger when I call: BundleContent bc = felix.getBundleContent(); bc.installBundle(name, inputStream); 04-28 18:31:45.716: ERROR/SkiftaService(6274): Unresolved constraint in bundle org.apache.log4j [1]: package; (package=javax.xml.parsers) ...which seems to suggest that it can't find the package. Any ideas?
Not sure off hand. Try Karl's suggestion. -> richard
Thanks Bruce