package com.bridge;

import org.apache.cordova.CordovaPlugin;
import org.apache.cordova.CallbackContext;

import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

/**
 * This class echoes a string called from JavaScript.
 */
public class Open extends CordovaPlugin {

    @Override
    public boolean execute(String action, JSONArray args, CallbackContext callbackContext) throws JSONException {
        if (action.equals("open")) {
            String message = args.getString(0);
            this.chooseIntent(message, callbackContext);
            return true;
        }
        return false;
    }

    private void chooseIntent(String message, CallbackContext callbackContext) {
        if (message != null && message.length() > 0) {
            callbackContext.success(message);
        } else {
            callbackContext.error("Expected one non-empty string argument.");
        }
    }
}

@@ -475,23 +475,20 @@
  String 
-message
+path
  = args.
@@ -531,23 +531,20 @@
 eIntent(
-message
+path
 , callba
@@ -656,23 +656,20 @@
 (String 
-message
+path
 , Callba
@@ -709,23 +709,20 @@
     if (
-message
+path
  != null
@@ -725,23 +725,20 @@
 null && 
-message
+path
 .length(
@@ -786,15 +786,12 @@
 ess(
-message
+path
 );%0A 

Rename argument variable