Hi!
First of all, I'm sorry if that's a dumb question, but i'm new to java and Android Studio.
My app uses the Master/Detail template and I'm getting the error "Non-static method write(byte[]) cannot be referenced from a static context" when trying to write data to serial from any activity.
Is there a way to use the library with this template? What may I be dong wrong?
Solved by converting the code to Kotlin, then following the Kotlin 101 tutorial and using the function (activity as ItemListActivity).m_serial?.write(input.toByteArray())
Hi! First of all, I'm sorry if that's a dumb question, but i'm new to java and Android Studio. My app uses the Master/Detail template and I'm getting the error "Non-static method write(byte[]) cannot be referenced from a static context" when trying to write data to serial from any activity. Is there a way to use the library with this template? What may I be dong wrong?