mirror of
https://gitee.com/shuto/customCamera.git
synced 2026-05-02 00:07:24 +08:00
Mise en place de la structure pour android + ajout de hook pour l'installation et le fonctionnement du plugin sous android.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package org.geneanet.customcamera;
|
||||
|
||||
import XXX_NAME_CURRENT_PACKAGE_XXX.CameraView;
|
||||
import org.apache.cordova.CordovaPlugin;
|
||||
import org.apache.cordova.CallbackContext;
|
||||
import org.json.JSONArray;
|
||||
@@ -9,14 +10,9 @@ import android.content.Intent;
|
||||
|
||||
public class CameraLauncher extends CordovaPlugin {
|
||||
public boolean execute(String action, JSONArray args, CallbackContext callbackContext) throws JSONException {
|
||||
Intent intent = new Intent("org.geneanet.customcamera.CameraView");
|
||||
cordova.startActivityForResult((CordovaPlugin) this, intent, 1111111);
|
||||
|
||||
Intent intent = new Intent(this.cordova.getActivity(), CameraView.class);
|
||||
cordova.getActivity().startActivity(intent);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public void testAction()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user