title: Call a Runnable class inside an Activity
body: <p>I've a Runnable class , Is it possible to call this runnable class inside an activity ?</p>
  
  <p>Here is my class :</p>
  
  <pre><code>public class TstClass implements Runnable {
  
  static boolean m_bret = false; 
  static String m_szconfig = "-i";
  private int n_stat;
  public native String unimplementedStringFromJNI();
  
  
  static {
      try {
          System.out.println ( "[AdDBCache] Module load try ffmpeg : " + System.getProperty("java.library.path"));
          System.loadLibrary("tstjni");
          System.out.println ( "[AdDBCache] Module load success");
  
       } catch ( Exception e ) {
           System.out.println ( "[AdDBCache] Module load err : " + System.getProperty("java.library.path"));
  }
  }
  
  private static synchronized final native int mod_run (String name, String sztoken );
  
  public void set_config ( String sz_config ) {
      m_szconfig = sz_config;
  }
  
  
  public void run_core ( String sz_file, String sz_token ) {
      m_bret = false;
      n_stat = mod_run ( m_szconfig, sz_token );
      m_bret = true;
  }
  
  
  public void run () {
      run_core ("", "");
  }
  
  }
  </code></pre>
  
  <p>Logcat error:</p>
  
  <pre><code>03-14 17:53:11.405: E/AndroidRuntime(2605): FATAL EXCEPTION: Thread-8
  03-14 17:53:11.405: E/AndroidRuntime(2605): java.lang.UnsatisfiedLinkError: mod_run
  03-14 17:53:11.405: E/AndroidRuntime(2605):     at com.parsapp.actionmovie.ffmpeg.mod_run(Native Method)
  03-14 17:53:11.405: E/AndroidRuntime(2605):     at com.parsapp.actionmovie.ffmpeg.run_core(ffmpeg.java:31)
  03-14 17:53:11.405: E/AndroidRuntime(2605):     at com.parsapp.actionmovie.ffmpeg.run(ffmpeg.java:37)
  03-14 17:53:11.405: E/AndroidRuntime(2605):     at java.lang.Thread.run(Thread.java:1096)
  </code></pre>