title: Android cordova plugin with callback
body: <p>I am converting a IOS phonegap plugin to android. In IOS there is a plugin call like this</p>
  
  <pre><code>cordova.exec('InAppPurchaseManager.requestProductsData', callbackName, {productIds: productIds});
  </code></pre>
  
  <p>This line of code is using the native layer to fetch the product details from itues store. Once this message is send to native layer it then makes an asynchronous request to get products details.Once it has the products it then makes the call</p>
  
  <pre><code>NSString *js = [NSString stringWithFormat:@"%@.apply(plugins.inAppPurchaseManager, %@);", callback, [callbackArgs cdvjk_JSONSerialize]];
      [command writeJavascript: js];
  </code></pre>
  
  <p>In above line the variable callback holds the value passed by the argument <strong>callbackName</strong> when the plugin is invoked. How can I do the same in android?</p>
  
  <p>The plugin dont have an option to recieve the callbackname value in android</p>
  
  <pre><code>public PluginResult execute(String action, JSONArray args, CallbackContext callbackContext) throws JSONException
  </code></pre>
  
  <p>In android from phonegap I am using this method</p>
  
  <pre><code>cordova.exec(callbackName, null, "MyPluginClass", "getProducts", productIds);
  </code></pre>
  
  <p>How can I implement the same in android?</p>
  
  <p>Thanks</p>