The best approach is to create a Felix instance (there's a tutorial on this) within the Android app and ensure that all of the android package namespaces are exported to the Felix environment. You then need to find a way for the bundles running in Felix to access things in the Android space. The best way I've found to do this is to create an OSGi bundle with a single service interface in the Android app, perhaps:
public Context getAndroidContext(); You can then export the service by getting a handle to the Felix BundleContext in the Android app, registering the service you created above. Now the bundles can get a handle to your 'Android service' and can from that get access to the Android Context. On 17/01/2011 02:13, "mehdouch" <mehd...@hotmail.com> wrote: > >Hi, I read the excellent tutorial found on apache felix website about >running >apache felix on android. > >I am tryng de build an android application (GUI) to control / monitor the >bundles. for exemple the binarylight sample. > >how can I make them both communicate ? >-- >View this message in context: >http://old.nabble.com/Felix-and-Android-tp30676181p30676181.html >Sent from the Apache Felix - Users mailing list archive at Nabble.com. > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: users-unsubscr...@felix.apache.org >For additional commands, e-mail: users-h...@felix.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@felix.apache.org For additional commands, e-mail: users-h...@felix.apache.org