- Home /
How to release global references created when passing strings from java to c# via AndroidJavaProxy interface
I have a java interface declared in an Android plugin that looks like this: public interface MyInterface { public void dataHandler(String a, String b, String data); public void messageHandler(int mtype, String message); }
I have AndroidJavaProxy subclass that implements this interface. I can make the calls just fine. The problem is that with each call many java global references are created that are never released. I need to make many of these calls per second so the end result is the java global reference table overflows and the app crashes.
How do I release these global references? Or is there a better way to pass the data? I could use UnitySendMessage though I think that will delay data delivery a frame.
Your answer
Follow this Question
Related Questions
Android Multi-Plugins 0 Answers
How do I make an Android plugin for unity? 0 Answers
why unity not resolving aar and jar files 0 Answers
Unity doesn't include plugins for Android build 0 Answers
DllNotFoundException: File is present 0 Answers