title: What are valid return values for a Javascript Interface on an Android WebView?
body: <p>I have an Android WebView that has JavaScript that is calling Android methods through the addJavascriptInterface method:</p>
  
  <pre><code>myWebview.addJavascriptInterface(new JavascriptBridge(), "Android");
  
  public class JavascriptBridge {
  
      public String getAString() {          
          return "my_str";
      }
  }
  </code></pre>
  
  <p>This works fine. I want to return a list of ints to the WebView. Tried this:</p>
  
  <pre><code>public class JavascriptBridge {
  
      public int[] getMyInts() {          
          return new int[]{1,2,3};
      }
  }
  </code></pre>
  
  <p>but calling this function in JS returns undefined:</p>
  
  <pre><code>var myInts = Android.getMyInts();
  </code></pre>
  
  <p>Is there a list of valid return types for an Android Javascript Interface? Is it only primitives?  </p>