title: How to get FREContext from Context?
body: <p>I have an ANE (Adobe Native Extension) auto launched after <code>BOOT_COMPLETED</code>. It runs as a service listening for phone status changes. Everything works fine until I need bring the main AIR activity to front to get user input. I know how to get the context from the service but not the FREContext.
  I have tried this:</p>
  
  <pre><code>    myANEContextClass myANEContext = new myANEContextClass ();
      Activity myAIRActivity = myANEContext .getActivity();
      Intent in = new Intent(myAIRActivity,myAIRActivity.getClass()); 
      in.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);
  </code></pre>
  
  <p>but it is not working and I am getting error :</p>
  
  <pre><code>E/AndroidRuntime( 3451): java.lang.UnsatisfiedLinkError: Native method not found: com.adobe.fre.FREContext.getActivity:()Landroid/app/Activity;
  
  E/AndroidRuntime( 3451): at com.adobe.fre.FREContext.getActivity(Native Method)
  </code></pre>
  
  <p>But I think the process is there because later I get :</p>
  
  <pre><code>I/ActivityManager( 368): Process air.myANEApp (pid 3451) (adj 5) has died.
  </code></pre>
  
  <p>so must be a way to get the FREContext from the process</p>