通过NDK应用程序访问GPS [英] Access GPS through NDK applications

查看:730
本文介绍了通过NDK应用程序访问GPS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用NDK目前正在为Android的一个简单的应用程序,并需要得到
来自GPS的坐标。我在网上搜索,但都空手而归。有一些API或对等NDK的程序访问GPS?

I am currently building a simple application for Android using the NDK and needs to get the coordinates from the GPS. I've searched the web, but have come up empty handed. Is there some API or such for NDK-programs to access the GPS?

推荐答案

没有的NDK仅支持库的数量有限。它被设计用于的事情是真的处理器密集型的,因此实际上将被写入在本地语言中受益。从文档,只支持方面:

No, the NDK only supports a limited number of libraries. It is designed to be used for things that are really processor intensive, and thus would actually benefit from being written in a native language. From the docs, only supported areas:


      
  • 的libc(C库)头文件

  •   
  • 的libm(数学库)头文件

  •   
  • JNI接口头文件

  •   
  • libz进行(COM的Zlib pression)标题

  •   
  • liblog(Android的日志记录)头

  •   
  • 的OpenGL ES 1.1和OpenGL ES 2.0(3D图形库)头文件

  •   
  • libjnigraphics(像素缓冲区的访问)头(为Android 2.2及以上)

  •   
  • C ++支持最少的套头

  •   

这篇关于通过NDK应用程序访问GPS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆