<div>With Alpha4, you can have your own JNI_OnLoad in your module ( shared lib), it will be called when your lib is loaded.</div><div> </div><div>You can add this function in main.cpp.</div><div> </div><div>Q_DECL_EXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void* /*reserved*/)<br>
{</div><div> // Do what you need to here.<br> return JNI_VERSION_1_4;<br>}</div><div> </div><div>Anjin<br></div><div class="gmail_quote">On Sun, Oct 21, 2012 at 10:32 PM, 毛林 <span dir="ltr"><<a href="mailto:mao.lin.cdzl@gmail.com" target="_blank">mao.lin.cdzl@gmail.com</a>></span> wrote:<br>
<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">i made a VOIP app,so i had to capture/play audio stream. by alpha 3,i can modify qtmain_android.cpp to load java class AudioRecord and AudioTrack to do that because there was no implemention in necessitas yet. now alpha 4 released, qtmain_android.cpp is missing,i see that you said "user java/c++ interaction is support",but i have no idea how to do it,could you post some simple example? thx very much! <br>
<br><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote"> </blockquote></blockquote></div>