Android Window handle

I am attempting to get the Ogre3d library to render in the window created by SDL so that I can use the SDL event handler. This works fine on linux and Windows. However, it crashes on Android if I use the recently added function to return the window handle. I am running the 2.0.3-8984 mercurial snapshot from a few days ago. Prior to using the built-in function for getting the window handle I used some JNI hackery to get it. I have done some tests and found that the 2 methods return different handles.

Here’s the code for what I have been doing:–
Sent from my Android device with K-9 Mail. Please excuse my brevity.