title: Get return value from classloader
body: <p>I want to know how can I get this boolean return value (true/false) from the classloader?</p>
  <pre><code>public static boolean isInitialized() {
      return UnityServices.isInitialized();
  }
  </code></pre>
  <p>The following is my code:</p>
  <pre><code>ClassLoader cl = new URLClassLoader(urlsArr);
  Class loadedMyClass = cl.loadClass(className);
  Constructor constructor = loadedMyClass.getConstructor();
  Object myClassObject = constructor.newInstance();
  
  // Getting the target method from the loaded class and invoke it using its name
  Method method = loadedMyClass.getMethod(methodNAme);
  method.invoke(myClassObject);
  Log.d(&quot;Invoked&quot;, method.getName());
  
  return //get the value;
  </code></pre>