You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Jackson, Bruce" <br...@qualcomm.com> on 2010/04/20 02:13:21 UTC

Felix embedded on Android

Hi there

On the Felix/Android site ( http://felix.apache.org/site/apache-felix-and-google-android.html) there is a comment that:

“Apache Felix can also be integrated with an Android application. To achieve this, you need to embed Felix into onCreate() method of your Activity class”

Does anyone know: is this an exclusive provision for some reason, or can an embedded Felix instance exist in a Service rather than an Activity?

Thanks

Bruce

Re: Felix embedded on Android

Posted by Clement Escoffier <cl...@gmail.com>.
Hi,

On 20.04.2010, at 02:13, Jackson, Bruce wrote:

> Hi there
> 
> On the Felix/Android site ( http://felix.apache.org/site/apache-felix-and-google-android.html) there is a comment that:
> 
> “Apache Felix can also be integrated with an Android application. To achieve this, you need to embed Felix into onCreate() method of your Activity class”
> 
> Does anyone know: is this an exclusive provision for some reason, or can an embedded Felix instance exist in a Service rather than an Activity?

It is definitely better to embed Felix inside an Android service, just explicitly start your service (startService). However, to interact with the user, you must use Notifications as a Service does not have access to the UI.

Regards,

Clement

> 
> Thanks
> 
> Bruce