Page 1 of 1

Android (Kotlin) not able to Initialize Phidget Class.

Posted: Tue Aug 09, 2022 4:04 pm
by ggalanprytimemedical
I have the following code in an Android App, coded in Kotlin.
The app crashes right away when attempting to run the first line of the code below.

val sliderPumpOffset = VoltageRatioInput()
sliderPumpOffset.hubPort = 1
sliderPumpOffset.isHubPortDevice = true
sliderPumpOffset.isRemote = true
Net.enableServerDiscovery(ServerType.DEVICE_REMOTE)
sliderPumpOffset.open()
val kk = sliderPumpOffset.sensorValue

Is there a well documented and up-to-date tutorial on how to get an Android App working with Phidgets (accessed remotely via a network server)?