An action for Android taking a picture with a gesture and storing it on the hdcard.
You can see the selfie working on RKT Launcher, check the PLAY STORE.
Follow the Andoid Addon Guide to set the GestureKit library.
With the setGestureKitListener interface on the gesturekit object, you can listen to loaded method and set the GestureActionTakeSelfie with the name parameter "Selfie".
this.gestureKit.setGestureKitListener(new GestureKitListener() {
@Override
public void onGestureKitLoaded() {
GestureKitPlugins.getInstance().setAction(
new GestureActionTakeSelfie (mActivity), "Selfie");
};
});
GestureActionTakeSelfie implements GKActionInterface that exposes the gesture name with getActionID() method to the API.
Once a gesture is recognized with the same name ("Selfie"), then onGestureRecognized is called.
@Override
public String getActionID() {
return "Selfie";
}
@Override
public void onGestureRecognized(Object... params) {
// Take selfie code here.
}
Licensed under Apache v2 License.
Copyright (c) 2014 RoamTouch.