Compilation error during defining Device variable in Android app
<p>I am new in android app i am trying to make Upnp browser activity to detect the the devices with Upnp enable. I got compilation error while trying to define Device Variable in eclipse environment, the error says Add type argument to device, thanks for your help in advance.  </p>

<pre><code> public class Test extends ListActivity {
 private ArrayAdapter&lt;DeviceDisplay&gt; listAdapter;

    private BrowseRegistryListener registryListener = new BrowseRegistryListener();

    private AndroidUpnpService upnpService;
    private ServiceConnection serviceConnection = new ServiceConnection(){

        public void onServiceConnected(ComponentName className, IBinder service) {
        upnpService = (AndroidUpnpService) service;

            // Refresh the list with all known devices
            listAdapter.clear();
            for (Device device : upnpService.getRegistry().getDevices()) {
                registryListener.deviceAdded(device);
            }

            // Getting ready for future device advertisements
            upnpService.getRegistry().addListener(registryListener);

            // Search asynchronously for all devices
            upnpService.getControlPoint().search();
        }

        public void onServiceDisconnected(ComponentName className) {
            upnpService = null;
        }
    };
</code></pre>
