V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
ruin52xl
V2EX  ›  问与答

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

  •  
  •   ruin52xl · Dec 3, 2015 · 2526 views
    This topic created in 3804 days ago, the information mentioned may be changed or developed.

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

    6 replies    2015-12-04 14:51:04 +08:00
    sophymax
        1
    sophymax  
       Dec 3, 2015 via Android
    用游戏引擎写个 app 就是了……
    TVBG
        2
    TVBG  
       Dec 3, 2015
    为啥要用 cpp 写 android 应用?游戏还行, cpp 能调用的 api 数量有限,除非有类似 Xamarin 的框架。
    zonghua
        3
    zonghua  
       Dec 3, 2015 via iPhone
    纯 cpp 的论坛都有,忘记在哪里了。
    ruin52xl
        4
    ruin52xl  
    OP
       Dec 4, 2015
    @TVBG 纯 cpp 写的应用好像可以不受虚拟机的限制!
    ruin52xl
        5
    ruin52xl  
    OP
       Dec 4, 2015
    @zonghua 纯 cpp 的论坛这个虽然不常见,但是知道有! 但是纯 cpp 的 android 应用还真没见过!
    TVBG
        6
    TVBG  
       Dec 4, 2015
    @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
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2527 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 02:36 · PVG 10:36 · LAX 19:36 · JFK 22:36
    ♥ Do have faith in what you're doing.