title: Pass multiple parameters from java to c++ application via JNI
body: <p>On the java side, when there is a message received, java function</p>
  
  <pre><code>JavaMessageReceived(int msgNo, int msgLen, int[] msgData, long msgTimestamp)
  </code></pre>
  
  <p>will be called, so the information of the message will be stored in msgNo, msgLen, msgData and msgTimestamp. </p>
  
  <p>Then I would like to pass the value in msgNo, msgLen and msgData, msgTimestamp to a function in c++ side(application), called </p>
  
  <pre><code>CppGotMessage(int *no, int *len, int*data, long* timestamp)
  </code></pre>
  
  <p>When I call <code>CppGotMessage()</code> I will get the information of the received message.</p>
  
  <p>How do I do this via JNI?(can't use JNA or other third software)<br>
  From this link: 
  <a href="http://doc-snapshot.qt-project.org/qdoc/qandroidjniobject.html" rel="nofollow">http://doc-snapshot.qt-project.org/qdoc/qandroidjniobject.html</a></p>
  
  <p>I noticed the ResigterNatives won't work for me, because when I call CppGotMessage on c++ side, I don't have any arguments to pass to the java function. I just need to got the value from the java function and store them in my CppGotMessage function's parameters..</p>