@SuppressWarnings("unchecked") public void registerDefaultDeviceTypes(){
  final HashMap<String,String> devicesList=DefaultPlatform.getDeviceServiceMap();
  for (  HashMap.Entry<String,String> entry : devicesList.entrySet()) {
    String key=entry.getKey();
    String value=entry.getValue();
    try {
      registerDeviceService((Class<DeviceService>)Class.forName(key),(Class<DiscoveryProvider>)Class.forName(value));
    }
 catch (    ClassNotFoundException e) {
      e.printStackTrace();
    }
  }
}

@ SuppressWarnings ( "unchecked" ) public void registerDefaultDeviceTypes ( ) { final HashMap < String , String > devicesList = DefaultPlatform . getDeviceServiceMap ( ) ; for ( HashMap . Entry < String , String > entry : devicesList . entrySet ( ) ) { String key = entry . getKey ( ) ; String value = entry . getValue ( ) ; try { registerDeviceService ( ( Class < DeviceService > ) Class . forName ( key ) , ( Class < DiscoveryProvider > ) Class . forName ( value ) ) ; } catch ( ClassNotFoundException e ) { e . printStackTrace ( ) ; } } }
registers a commonly - used set of deviceservices with discoverymanager . this method will be called on first call of startdiscovery if no deviceservices have been registered . - castdiscoveryprovider + castservice - ssdpdiscoveryprovider + dialservice + dlnaservice ( limited to lg tvs , currently ) + netcasttvservice + rokuservice + webostvservice + multiscreenservice - zeroconfdiscoveryprovider + airplayservice
