[Android] Register Choreographer callbacks from SDL_main

I was wondering if it’s possible to register Choreographer callbacks from the main function where we initialize SDL ?

#include <android/choreographer.h>
int main(int /*argc*/, char* /*argv*/[]) {
   AChoreographer_postFrameCallback(AChoreographer_getInstance(), myCallback, myData);

   [SDL initialization and main loop here]

   return 0;

I tried this snippet but my callback is never called.

Any ideas ?