Possible to write in C++?


Last Updated:

  1. goodboy

    goodboy Well-Known Member This Topic's Starter

    Joined:
    Oct 21, 2010
    Messages:
    117
    Likes Received:
    8
    I understand that Android's SDK is in Java but unfortuneltly I'm not familiar with Java, yet. I was wondering if it were possible to write apps for Android in C++ and have them converted afterwards?
     

    Advertisement
  2. 0mnipotence

    0mnipotence Member

    Joined:
    Oct 25, 2010
    Messages:
    18
    Likes Received:
    6
    From what I've heard, the languages are similar, at least enough so that it would be easy to learn one once you've learned the other. I think your best bet is to increase your knowledge base and learn java :)
     
  3. mblenton

    mblenton Member

    Joined:
    Nov 6, 2010
    Messages:
    6
    Likes Received:
    0
    Android development is Java based, but there's Native Development Kit, Android NDK | Android Developers, which should be used for critical portions of the applications only. I guess you could develop the whole application in NDK, but that would probably be cumbersome and time consuming.
     
  4. Rootstonian

    Rootstonian Member

    Joined:
    Nov 25, 2010
    Messages:
    16
    Likes Received:
    0
    As a C and C++ programmer, transitioning to JAVA is pretty easy. JAVA is extremely "class" oriented so you're OOP in C++ needs to be pretty good.

    As a long time programmer with about 10 languages under my belt, I've found going from language to language is really just a syntax change. Basic programming skills (logic, program flow, program design, modular programming, code reuse) are basic skills learned in your first 2 years of coding (hopefully) :)
     
  5. beer-in-box

    beer-in-box Well-Known Member

    Joined:
    Nov 15, 2010
    Messages:
    219
    Likes Received:
    12
    I am a translator, between Turkish and English. I was translating a text about java programming. The person I translate for liked it and told me that there might be more to come. So, since I have my android phone, I thought I might give it a go, maybe I can program something :)

    So, Android programs are written in Java?
    And if so, are there any differences?
    Thank you.
     
  6. miXer

    miXer Well-Known Member

    Joined:
    Aug 12, 2010
    Messages:
    313
    Likes Received:
    51
    Well, there are some differences, look at this link to see some of the differences in the languages.

    And i would really recommend you to program in java, since the top level tools in android is also programmed in java it makes it so much easier to program own apps.
     
  7. beer-in-box

    beer-in-box Well-Known Member

    Joined:
    Nov 15, 2010
    Messages:
    219
    Likes Received:
    12
    So, if i want to program an application which can work in Windows or Linux or Android, Java is where I am going, but still have questions.
    I studied C# for fun a little. So I know there are similarities and differences between c and c#. Same goes for java and java# too.
    So, which one to go? Java or Java #? And if i start with Java, is it easy to go on with Java #? Or go with both of them?
    I thank you for your kind answers.
     
  8. beer-in-box

    beer-in-box Well-Known Member

    Joined:
    Nov 15, 2010
    Messages:
    219
    Likes Received:
    12
    I meant if there are differences between Java and Android development.
    Actually, they say if you know C++ or C#, you are halfway of Java, but I will start from beginning. So it doesn't matter for me.
    But thank you.
    If only someone replies my questions again :)
     
  9. jonbonazza

    jonbonazza Well-Known Member

    Joined:
    Jul 13, 2010
    Messages:
    1,934
    Likes Received:
    458
    Just to clarify, you don't use the JDK (Java Development Kit) for android programming. You use the Android SDK. Although the Android SDK ccontains a very very small section of the JDK, most of it is entirely new and not related to Java in any way. Because of this, Applictaion written in java for PC/Mac/Linux/Whatever else will NOT work on android without some conversion or the use of a J2ME runner app. Same thing goes for the reverse. Application written using the Android SDK will not run on anything except the Android OS.
     
  10. beer-in-box

    beer-in-box Well-Known Member

    Joined:
    Nov 15, 2010
    Messages:
    219
    Likes Received:
    12
    I am still waiting :)

    Yes, I am aware of that. But I mean if there are syntax differences. This is what is important to me. If there are big differences, I'd go with another language, perhaps C# and never turn back. But if there are little or no differences, then I'll go with Java.
     
  11. jonbonazza

    jonbonazza Well-Known Member

    Joined:
    Jul 13, 2010
    Messages:
    1,934
    Likes Received:
    458
    The syntaxes of Java and C++ are nearly identical.
     

Share This Page

Loading...