/** * Construct an instance of NetworkVehicleInterface with a receiver * callback and custom device URI. * * If the device cannot be found at initialization, the object will block * waiting for a signal to check again. * * * @param context * The Activity or Service context, used to get access to the * Android NetworkManager. * @param callback * An object implementing the SourceCallback that should receive * data as it is received and parsed. * @param uri * The network host's address. * @throws DataSourceException * If no connection could be established */ public NetworkVehicleInterface(SourceCallback callback, Context context, URI uri) throws DataSourceException { super(callback, context); setUri(uri); start(); }