2014-11-10 12:21:03 +01:00
|
|
|
package org.geneanet.customcamera;
|
|
|
|
|
|
2014-11-14 16:05:50 +01:00
|
|
|
import XXX_NAME_CURRENT_PACKAGE_XXX.CameraView;
|
2014-11-10 12:21:03 +01:00
|
|
|
import org.apache.cordova.CordovaPlugin;
|
|
|
|
|
import org.apache.cordova.CallbackContext;
|
|
|
|
|
import org.json.JSONArray;
|
|
|
|
|
import org.json.JSONException;
|
|
|
|
|
|
|
|
|
|
import android.content.Intent;
|
|
|
|
|
|
|
|
|
|
public class CameraLauncher extends CordovaPlugin {
|
|
|
|
|
public boolean execute(String action, JSONArray args, CallbackContext callbackContext) throws JSONException {
|
2014-11-14 16:05:50 +01:00
|
|
|
Intent intent = new Intent(this.cordova.getActivity(), CameraView.class);
|
|
|
|
|
cordova.getActivity().startActivity(intent);
|
|
|
|
|
|
2014-11-10 12:21:03 +01:00
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
}
|