...
Additionally, users will need to add a dependency for the Serial Java library used by the SDK. This can be done by modifying the settings.gradle file with the following highlighted lines:
...
…and adding a reference to the git repo for the serial library to the relevant module.
...
Code Block | ||
---|---|---|
| ||
import com.fn.victorcommunications.VictorBleDeviceManager; public class MainActivity extends Activity { VictorBleDeviceManager deviceManager; @Override public void onCreate(Bundle savedInstanceState) { deviceManager = new VictorBleDeviceManager(this); } } |
USB
Code Block | ||
---|---|---|
| ||
import com.fn.victorcommunications.VictorUsbDeviceManager; public class MainActivity extends Activity { VictorUsbDeviceManager deviceManager; @Override public void onCreate(Bundle savedInstanceState) { deviceManager = new VictorUsbDeviceManager(this); } } |
...