Access GPS via NDK Applications

I am currently creating a simple Android application using the NDK and should get the coordinates from GPS. I searched the Internet but came up empty-handed. Is there any API or such for NDK programs for accessing GPS?

+3
source share
2 answers

No, NDK only supports a limited number of libraries. It is intended to be used for things that really work intensively with processors, and thus actually benefit from writing in their native language. From docs , only supported areas are supported:

  • Headings
  • libc (C library) Headers
  • libm (math library)
  • JNI Headers
  • libz (Zlib compression)
  • liblog (Android logging)
  • OpenGL ES 1.1 OpenGL ES 2.0 (3D-)
  • libjnigraphics ( ) ( Android 2.2 )
  • ++.
+3

GPS- JNI. NDK .

+1

Source: https://habr.com/ru/post/1775061/


All Articles