Now I work on service plugin that must show toast message time to time while app is out of focus.
But Logcat always shows “Can’t create handler inside thread that has not called Looper.prepare()” when I try to call Toast.makeText from plugin for Unity Android project.
Toast.makeText works fine when I call it from native Android project, but not from Unity.
It seems, because Unity uses UnityPlayerActivity rather than Activity.
Did anybody meeet this ?
I would greatly appreciate to get some hint how to workaround such a problem.
I want to copy some text (UI.Text, variable or whatever) in Android Clipboard. Simply saying user can copy text from unity app and take it back in his mobile.