5 Replies - 506 Views - Last Post: 29 September 2017 - 01:31 AM

#1 wseng92  Icon User is offline

  • D.I.C Regular

Reputation: 9
  • View blog
  • Posts: 307
  • Joined: 23-September 15

Can C++ write Android ?

Posted 18 August 2017 - 04:13 AM

Can we use c++ to write Android ? Or only Java?

This post has been edited by wseng92: 18 August 2017 - 04:15 AM

Is This A Good Question/Topic? 0
  • +

Replies To: Can C++ write Android ?

#2 EndLessMind  Icon User is offline

  • Android Expert
  • member icon

Reputation: 271
  • View blog
  • Posts: 1,250
  • Joined: 13-March 09

Re: Can C++ write Android ?

Posted 18 August 2017 - 04:22 AM

Yes you can!
You would want to look into Android NDK.
Last I checked you still needed some Java to initialize the C++ library,
but most can be done in C\C++.
Was This Post Helpful? 0
  • +
  • -

#3 wseng92  Icon User is offline

  • D.I.C Regular

Reputation: 9
  • View blog
  • Posts: 307
  • Joined: 23-September 15

Re: Can C++ write Android ?

Posted 18 August 2017 - 10:24 AM

Thanks for the reply!
Was This Post Helpful? 0
  • +
  • -

#4 ssraj  Icon User is offline

  • New D.I.C Head

Reputation: 2
  • View blog
  • Posts: 24
  • Joined: 02-December 15

Re: Can C++ write Android ?

Posted 21 August 2017 - 09:16 PM

Yes, you can code the android in the C++. But, Google adds more features to the Android Native Development Kit which makes it more convenient while you code in Java.

There is not much difference between C++ and Java, only syntax changes. In Java, networking, file-streaming, Buffers, and Threads will be new topics which will be helpful developing an application. If you know the basics of C++ then it is going to be easier for you to learn Java. You can learn Java and make the server-side of your application more efficient.
Was This Post Helpful? 0
  • +
  • -

#5 EndLessMind  Icon User is offline

  • Android Expert
  • member icon

Reputation: 271
  • View blog
  • Posts: 1,250
  • Joined: 13-March 09

Re: Can C++ write Android ?

Posted 22 August 2017 - 08:11 AM

View Postssraj, on 22 August 2017 - 05:16 AM, said:

Yes, you can code the android in the C++. But, Google adds more features to the Android Native Development Kit which makes it more convenient while you code in Java.


The NDK (Native Development kit) is use for C\C++ and any additions to the NDK will not affect the SDK (Java part) much if anything.
Basically, the NDK is a add-on/plug-in for the SDK so what you can't write in low-level languages like C and C++, but both ways still
rely on the support from the API. NDK is generally used for heavier tasks like image/audio processing and stuff like that.

You can read more about the NDK here
Was This Post Helpful? 0
  • +
  • -

#6 wseng92  Icon User is offline

  • D.I.C Regular

Reputation: 9
  • View blog
  • Posts: 307
  • Joined: 23-September 15

Re: Can C++ write Android ?

Posted 29 September 2017 - 01:31 AM

Thanks a lot guys !
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1