Hi
I’m developing a Unity app with Android integration that needs to call in to Java methods, then set an AsyncTask running. The problem is that the Thread that the Android calls are made on do not have a Looper running so running an AsyncTask throws a RuntimeException (an AsyncTask needs a handler and a handler cannot be added without a message loop).
I then thought ok I will force the current thread to be the looper and see what happens but because it isn’t bound to the main Android message loop the AyncTask’s onPostExecute is never called. Other than creating my own message loop and tracking my AsyncTasks in there I am all out of ideas. Has anybody had this issue before and resolved it? If not is there any advice from the Unity devs?
Thanks
Dan