How to access the android api from unity
I want to make a multiplayer game which uses the android api to send/recieve data across bluetooth. Only problem is that I dont know how to reach those libraries. Any help is appriciated!
HUGE EDIT: I've done loads more research and came to the conclusion that I had to write my own. I've since constructed a java library in eclipse and currently curious on how I can reach those methods. If you want, this is the source and this is the jar file in the zip.
Thank you so much for sharing your source code :) You should be able to instantiate your plugin using var plugin = new ANdroidJavaClass("package_name + class name");
And then call your methode with plugin.CallStatic<Type>("class_name")
Hope that helps, I'll try your source and see if that works :)
Answer by hexagonius · Mar 23, 2017 at 10:57 PM
this manual page should get you going:
I've read that page and others multiple times, what I'm looking for is a way to use the classes and libraries in this page :link text
Well, you can, on the java side of your game, which you communicate to through plugins. You won't be able to use any of that stuff in C#
Your answer
Follow this Question
Related Questions
Android API 30 required? 0 Answers
updating apk to android api 28 0 Answers
Using Custom Bluetooth HID input device for Android Unity Application. 0 Answers
Android Post ScreenShot to Facebook 0 Answers
Why isn't my code with a restful api in it npt working 0 Answers