felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jackson, Bruce" <bru...@qualcomm.com>
Subject Re: upnp listener
Date Tue, 03 May 2011 14:57:58 GMT
Hi Mehdouch

You simply need to create a ServiceTracker that watches for services of
type UPnPDevice, for example:

ServiceTrackerCustomizer stc = new ServiceTrackerCustomizer(){

	public Object addingService(ServiceReference arg0) {
		// when a new device is found, this method will get hit
		// if you're interested in tracking the device, you should get the
service from the
		// reference and return it from this method
		return null;

	public void modifiedService(ServiceReference arg0, Object arg1) {


	public void removedService(ServiceReference arg0, Object arg1) {
		// when a tracked device disappeared, this method will be called

ServiceTracker tracker = new ServiceTracker(context,
UPnPDevice.class.getName(), stc);



On 03/05/2011 09:51, "mehdouch" <mehdibc@hotmail.com> wrote:

>Hi all,
>How can I implements a simple upnp listener using felix upnp basedriver ?
>View this message in context:
>Sent from the Apache Felix - Users mailing list archive at Nabble.com.
>To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>For additional commands, e-mail: users-help@felix.apache.org

To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org

View raw message