janus-gateway-android
janus-gateway-android copied to clipboard
ExceptionInitializerError in JanusServer Attach() method
java.lang.ExceptionInitializerError (JanusServer.java:157) I've got this error on Android 4.0.4. With 7.1.1 works fine. Occurs cuz AsyncTask creates inside of Runnable. Workaround for this:
private Handler handler = new Handler(Looper.getMainLooper());
handler.post(new Runnable() { public void run() { new AsyncAttach().execute(callbacks); } });