title: PhoneGap Android Plugin - close the plugin Activity
body: <p>I have written a PhoneGap Android Plugin and there I open a second activity:</p>
  
  <pre><code> cordova.getActivity().runOnUiThread(new Runnable() {
          @Override
          public void run() {
              Context context = cordova.getActivity().getApplicationContext();
              Intent intent = new Intent(context, secondActivity.class);
              cordova.getActivity().startActivity(intent);
          }
      });
  </code></pre>
  
  <p>Now I'd like to close the activity with a button and send the Plugin Result to JavaScript, but Im not able to close the activity and go back to the PhoneGap Application - how can I do this? </p>
  
  <p>I hope somebody can help me. Thanks for all answers.</p>