Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

adding gestures without gesture builder

I'm working on a Gesture based application launcher.I need to add custom gestures from the application to the gesture library. I tried the method with Gesture builder and copying it to res/raw, It worked. But i need to add more Gestures through my applications add gesture menu..help

like image 292
shibin Avatar asked Oct 21 '11 01:10

shibin


1 Answers

I'm not sure what you want, but if you need keep and modify GestureLibrary you can read and write it at filesystem like this:

final String fileName = "gestures";
final String dir = Environment.getExternalStorageDirectory();
final File storeFile = new File(dir, fileName);
final GestureLibrary gesturelib = GestureLibraries.fromFile(storeFile);

Code of creating gestures you can get from GestureBuilder example (Sorry, I found only this source, but it copy well-known example with changed names of variables) and read about in how-to.

Or about what gestures you asked?

like image 78
nfirex Avatar answered Sep 28 '22 02:09

nfirex