package com.oliviafil.camera;

import org.apache.cordova.*;
import org.json.JSONArray;
import org.json.JSONException;

public class facedetect extends CordovaPlugin {

    @Override
    public boolean execute(String action, JSONArray data, CallbackContext callbackContext) throws JSONException {

        if (action.equals("greet")) {

            String name = data.getString(0);
            String message = "Hello, " + name;
            callbackContext.success(message);

            return true;

        } else {
            
            return false;

        }
    }
}

@@ -22,11 +22,8 @@
 .cam
-era
 ;%0A%0Ai
@@ -318,12 +318,22 @@
 ls(%22
-gree
+startfacedetec
 t%22))

Update facedetect.java