Location information in native code

50 views
Skip to first unread message

Anders

unread,
May 13, 2010, 1:55:03 PM5/13/10
to android-ndk
Hi,

I have an app that is using both native code and the sdk. I would like
the native code to be able to obtain location formation (such as GPS
coordinates). What is the best strategy for achieving this?
I know how to do this from the SDK, and I could create an JNI
interface that the native code could use to interact with the SDK
functions as needed. However, if possible I would like the native to
obtain this information directly, natively. Is this possible?
Any pointers would be greatly appreciated.

--
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.

David Turner

unread,
May 13, 2010, 7:54:35 PM5/13/10
to andro...@googlegroups.com
You need to use the VM, there is no native API to access the data directly.
Reply all
Reply to author
Forward
0 new messages