title: calling java method from unity c#
body: <p>Hello everyone,
                Can anyone tell me how to call java methods from unity c#.
  I tried the following but its not working for me.</p>
  
  <p><strong>In Unity :</strong></p>
  
  <pre><code>void OnGUI () {
      string somestring;
      AndroidJavaClass jc= new    AndroidJavaClass("com.example.pluginsample.MainActivity");
      AndroidJavaObject jo = jc.GetStatic&lt;AndroidJavaObject&gt;("instance");
      somestring = jo.Call&lt;string&gt;("Foo");
      GUI.Label (new Rect (20, 20, 100, 20), somestring);
  }
  </code></pre>
  
  <p><strong>In Java Class:</strong></p>
  
  <pre><code>public String Foo()
  {
      return "Hello";        
  }
  </code></pre>
  
  <p>Please help.I am stuck.Thanks in advance.</p>