V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
ruin52xl
V2EX  ›  问与答

问个问题:有人用纯 cpp 写的 android 应用吗?

  •  
  •   ruin52xl · 2015-12-03 11:13:38 +08:00 · 1756 次点击
    这是一个创建于 3078 天前的主题,其中的信息可能已经有所发展或是发生改变。

    很想知道有没有人用纯 cpp 写过 android 应用,效率怎么样?

    6 条回复    2015-12-04 14:51:04 +08:00
    sophymax
        1
    sophymax  
       2015-12-03 11:56:31 +08:00 via Android
    用游戏引擎写个 app 就是了……
    TVBG
        2
    TVBG  
       2015-12-03 18:26:48 +08:00
    为啥要用 cpp 写 android 应用?游戏还行, cpp 能调用的 api 数量有限,除非有类似 Xamarin 的框架。
    zonghua
        3
    zonghua  
       2015-12-03 23:43:59 +08:00 via iPhone
    纯 cpp 的论坛都有,忘记在哪里了。
    ruin52xl
        4
    ruin52xl  
    OP
       2015-12-04 09:31:00 +08:00
    @TVBG 纯 cpp 写的应用好像可以不受虚拟机的限制!
    ruin52xl
        5
    ruin52xl  
    OP
       2015-12-04 09:32:04 +08:00
    @zonghua 纯 cpp 的论坛这个虽然不常见,但是知道有! 但是纯 cpp 的 android 应用还真没见过!
    TVBG
        6
    TVBG  
       2015-12-04 14:51:04 +08:00
    @ruin52xl android 有许多的代码是 java 写的,如果用 c++就意味着无法使用或正常使用。在官方 NDK 的简介有这些话: Before downloading the NDK, you should understand that the NDK will not benefit most apps. 和 In general, you should only use the NDK if it is essential to your app — never because you simply prefer to program in C/C++. 不过发现一个非官方的方案 https://www.embarcadero.com/products/rad-studio
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5251 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 05:42 · PVG 13:42 · LAX 22:42 · JFK 01:42
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.