Huzyfee
Lurker
Hi Everyone!!
So, after taking deep dig at Android Plugins for unity, I understand its not easy task.
Task: I want to make a application in unity which on run time open Android bluetooth connect with a particular hardware and start getting data serially.
Things I understand: I need to write a java plugin using Android Studio, call the Java functions from C# to open/close/send/receive the data.
Now ISSUES!!: I have written a code in Java to connect with Hardware and get the data and displays on Mobile screen via Bluetooth. The code is totally working as a Application but when I try to convert it as a Library it just doesn't work. I am not able to get access the data using Unity application. Please any pointers to getting started with or how to pursue it would be really appreciated.
I have attached my working Android Project which turns the bluetooth ON and show the incoming data on Screen from hardware. In my case I was sending Potentiometer data using Arduino.
https://drive.google.com/file/d/0B3MI9RNDYypwbENPd21oTUlzUWs/view?usp=sharing
Please any help is appreciated.
Best Regards,
Huzaifa
So, after taking deep dig at Android Plugins for unity, I understand its not easy task.
Task: I want to make a application in unity which on run time open Android bluetooth connect with a particular hardware and start getting data serially.
Things I understand: I need to write a java plugin using Android Studio, call the Java functions from C# to open/close/send/receive the data.
Now ISSUES!!: I have written a code in Java to connect with Hardware and get the data and displays on Mobile screen via Bluetooth. The code is totally working as a Application but when I try to convert it as a Library it just doesn't work. I am not able to get access the data using Unity application. Please any pointers to getting started with or how to pursue it would be really appreciated.
I have attached my working Android Project which turns the bluetooth ON and show the incoming data on Screen from hardware. In my case I was sending Potentiometer data using Arduino.
https://drive.google.com/file/d/0B3MI9RNDYypwbENPd21oTUlzUWs/view?usp=sharing
Please any help is appreciated.
Best Regards,
Huzaifa