Hi Bram,
Excellent, thanks for sharing the presentation too. I'm glad that it
worked out.
Best regards,
-onur
> I found this excellent presentation by Bishop from nVidia:
http://developer.download.nvidia.com/assets/gamedev/files/gdc12/Andro...
>
> He presented some options, and one of them was to derive a new class from
> NativeActivity.
>
> So that's what I went with, and added Java code to my project.
> And I call that java from C.
> In his example, he wraps the actual java work with runOnUiThread()
> Which seems a safe thing to do.
>
> bram
>
>
>
>
>
>
>
> On Wednesday, October 31, 2012 10:43:20 PM UTC-7, Onur Cinar wrote:
>
> > Hi Bram,
>
> > The native activity is nothing more than the Java based
> > android.app.NativeActivity class delivering the lifecycle events to your
> > C/C++ application. Regarding from that perspective, you are still running
> > within the Java VM, and the entire Java based Android API is available to
> > your native C/C++ code. You can always use the JNIEnv interface in the
> > ANativeActivity structure to access the Java based API.
>
> > As there is no native API to use the in-app billing, you should implement
> > the necessary billing service as explained here:
>
> >
http://developer.android.com/guide/google/play/billing/billing_integr...