Hello,
I have a shim JAVA main activity so that I can use the layout
classes, etc.
for the UI. However, I also have a bunch of NDK code that needs
various
pointers to access hardware, loopers, etc.
Is it possible to obtain an android_app pointer in NDK code,
even though there is no android_main() entry? This information
would be very useful to have, even though I am not running
a native activity.
For example, how is it that ASensorManager_getInstance()
is able to access information about the application? Presumably,
this function is using a call to getSystemService() with information
about the application and context. Where is this stored, so that
I could construct something that would be equivalent to the
ASensorManager_getInstance() function in my native code. Thanks!
-Dan
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.
For example, in my application, it would be nice to be able to write
something
like AVibrator_getInstance(), without explicitly passing down the
activity pointer
through some JNI call from the Java activity object.
-Dan