Android (Kotlin) not able to Initialize Phidget Class.

Supporting 4.1 and up
Post Reply
ggalanprytimemedical
Phidgetsian
Posts: 5
Joined: Fri Jul 15, 2022 5:44 pm
Contact:

Android (Kotlin) not able to Initialize Phidget Class.

Post 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)?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests