[翻译]NDK之一:开始学习NDK编程

从本文开始,将开始翻译google Android开发文档中的NDK部分。
本文作为第一篇,是本系列文章的导言性质的文章。下文将首先列出中文翻译,随后附上英文原文部分。

中文部分:

NDK(本地开发包)是一个工具集,允许在Android应用中使用C/C++代码。从自己的源码中创建或者利用现有的预编译库都需要使用到这个工具。
NDK不适合Android初学者使用,并且对于大部分类型的Android应用不具有太大价值,同时也不可避免的带来开发流程上的多余的复杂性。
• 为那些对计算敏感的程序节省出机器的额外性能,比如游戏,物理仿真
• 复用你自己的或者别的应用的C/C++代码。
这篇文档介绍搭建和运行NDK需要的必要信息。首先解释了NDK的一些基础概念以及如何建立一个工程。然后介绍如何在构建过程中面向不同硬件平台。接着,介绍如何使用NDK创建和调试APP。最后讨论了如何使用你自己的或者别的预编译库。

英文部分:


Getting Started with the NDK

The Native Development Kit (NDK) is a set of tools that allow you to leverage C and C++ code in your Android apps. You can use it either to build from your own source code, or to take advantage of existing prebuilt libraries.

The NDK is not appropriate for most novice Android programmers, and has little value for many types of Android apps. It is often not worth the additional complexity it inevitably brings to the development process. However, it can be useful in cases in which you need to:
•Squeeze extra performance out of a device for computationally intensive applications like games or physics simulations.
•Reuse your own or other developers' C or C++ libraries.

This guide gives you the information you need to get up and running with the NDK. It starts by explaining the concepts underpinning the NDK, and how to set it up. Next, it continues with information about targeting different hardware platforms in your builds. Then, it explains how to use the NDK to build and debug your app. Finally, it discusses how to use your own and other prebuilt libraries.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值