package cordova.plugin.contact.add;

import org.apache.cordova.CordovaPlugin;
import org.apache.cordova.CallbackContext;
import android.content.Intent;
import android.content.Context;
import android.provider.ContactsContract;


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

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

    @Override
    public boolean execute(String action, JSONArray args, CallbackContext callbackContext) throws JSONException {
        if (action.equals("addContact")) {
          Context context=this.cordova.getActivity().getApplication();
          Intent intent=new Intent(Intent.ACTION_INSERT,ContactsContract.Contacts.CONTENT_URI);
          intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
          intent.putExtra("finishActivityOnSaveCompleted", true);
          context.startActivity(intent);
          return true;
        }
        return false;
    }

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

@@ -993,299 +993,7 @@
    %7D
-%0A%0A    private void addContact(String message, CallbackContext callbackContext) %7B%0A        if (message != null && message.length() %3E 0) %7B%0A            callbackContext.success(message);%0A        %7D else %7B%0A            callbackContext.error(%22Expected one non-empty string argument.%22);%0A        %7D%0A    %7D
 %0A%7D%0A

Remove android unecessary method