How to use Camera Burst Mode programmatically ?

I am trying to use the burst camera mode on an Xperia Z phone and I’ve just got started with openframeworks for android and I don’t have a lot of experience with the android sdk/ndk.

I did however manage to compile AOSP:
(eventually) and noticed there is a BurstCapture class which gets compiled into

I would like to use the burst camera mode from openframeworks for android but I don’t know where to start.

Can someone please help with some hint/pointers ?