How do I use ODK Sensors in my under developement Android App?

Hi everyone, the title of this topic is pretty self-explanatory:

since I realized that ODK Sensors only comes in the form of a .apk file,
I’m trying to understand how to use it in my Android App, which needs to
read data from a sensor via usb and bluetooth bridge. Should I invoke and
run the apk procedurally from my code? I am not sure I got this right.

Also, where could I find some documentation regarding the methods to invoke
when using the framework?

Thanks in advance,

Marzio

Hi! I had the same question before, so I’ll try to explain it simply. ODK Sensors is designed to work as a separate app, so you can’t directly include it in your Android app like a library. Instead, you usually call it from your app using Android Intents, kind of like asking it to do something and then waiting for a response. It’s not really meant to be run “inside” your app, but you can interact with it this way. For more details on how to do this, you can check out the ODK Sensors documentation on their GitHub page or look into how Android Intents work for inter-app communication. Hope that helps!