title: How to get activity object? (Android, Qt 5.2)
body: <p>I need to get main activity, and I tried:</p>
  
  <pre><code>QAndroidJniEnvironment jniEnv;
  jclass clsAct = jniEnv-&gt;FindClass("android/app/Activity");
  qDebug() &lt;&lt; "Activity: " &lt;&lt; clsAct;
  
  if( QAndroidJniObject::isClassAvailable("org/qtproject/qt5/android/bindings/QtActivity") )
  {
      jclass clsApp = jniEnv-&gt;FindClass("org/qtproject/qt5/android/bindings/QtActivity");
      qDebug() &lt;&lt; "QtActivity: " &lt;&lt; clsApp;
  
      if( clsApp &amp;&amp; clsAct )
      {
         jobject objAct = NULL;
         jmethodID mid = jniEnv-&gt;GetStaticMethodID( clsApp, "activity", "()Landroid/app/Activity;" );
         qDebug() &lt;&lt; "activityMID: " &lt;&lt; mid;
  
         if( mid )
         {
             objAct = jniEnv-&gt;CallStaticObjectMethod( clsApp, mid );
             qDebug() &lt;&lt; "activityObj: " &lt;&lt; objAct;
         }
     }
  }
  </code></pre>
  
  <p>But on <code>jniEnv-&gt;FindClass(“org/qtproject/qt5/android/bindings/QtActivity”)</code> shoots error:</p>
  
  <blockquote>
    <p>D/Qt      ( 4074): mainwindow.cpp:32
    (MainWindow::MainWindow(QWidget*)): >>>>>> QtActivity:  0x0
    W/dalvikvm( 4074): JNI WARNING: JNI function CallStaticVoidMethodV
    called with exception pending W/dalvikvm( 4074):              in
    Ldalvik/system/NativeStart;.run:()V (CallStaticVoidMethodV)
    W/dalvikvm( 4074): Pending exception is: I/dalvikvm( 4074):
    java.lang.NoClassDefFoundError:
    org/qtproject/qt5/android/bindings/QtActivity I/dalvikvm( 4074):  at
    dalvik.system.NativeStart.run(Native Method) I/dalvikvm( 4074): Caused
    by: I/dalvikvm( 4074): java.lang.ClassNotFoundException: Didn't find
    class "org.qtproject.qt5.android.bindings.QtActivity" on path:
    DexPathList[[directory "."],nativeLibraryDirectories=[/system/lib]]</p>
  </blockquote>