Jump to content

  • Log In with Google      Sign In   
  • Create Account


#Actual6677

Posted 01 December 2012 - 04:00 PM

How feasible would it be to write an app written in as close to pure native code as possible?

Let me elaborate a bit. I fully understand that most ndk apps for android will still need a few lines of java to initialize your native code so we'll leave that part out of the equation. I have also read an article on the ndk from google stating that using the NDK simply because you are more familiar with C or C++ than java is not recommended.

I do actually have a fairly extensive language background so although I don't know java if I was serious about writing an android app I would probably find it easy enough to learn. This is purely from a theoretical point of view. I don't have any intentions on getting into android app development as I don't have access to a working android handset, I use a windows phone and my old android handset has a dodgy touchscreen and crashes alot. Its just I came across a reference to the NDK somewhere once and am learning C to use on a microcontroller and then started thinking about this question.

Do you think it is possible to write an entire android app with either C or C++ (with the exception of the lines required to initialise your native code.

What problems do you think someone would come across?

Are there any apps that somewhat bizarrely use this approach?

Is there really any speed benefit? (I would normally expect there to be but apparently there are some weird quirks with how "native" code runs on android)

Wouldn't you lose support for x86 and MIPS handsets?

#26677

Posted 01 December 2012 - 03:59 PM

How feasible would it be to write an app written in as close to pure native code as possible?

Let me elaborate a bit. I fully understand that most ndk apps for android will still need a few lines of java to initialize your native code so we'll leave that part out of the equation. I have also read an article on the ndk from google stating that using the NDK simply because you are more familiar with C or C++ than java is not recommended.

I do actually have a fairly extensive language background so although I don't know java if I was serious about writing an android app I would probably find it easy enough to learn. This is purely from a theoretical point of view. I don't have any intentions on getting into android app development as I don't have access to a working android handset, I use a windows phone and my old android handset has a dodgy touchscreen and crashes alot. Its just I came across a reference to the NDK somewhere once and am learning C to use on a microcontroller and then started thinking about this question.

Do you think it is possible to write an entire android app with either C or C++ (with the exception of the lines required to initialise your native code.

What problems do you think someone would come across?

Are there any apps that somewhat bizarrely use this approach?

Is there really any speed benefit? (I would normally expect there to be but apparently there are some weird quirks with how "native" code runs on android)

Wouldn't you lose support for x86 and MIPS handsets?

#16677

Posted 01 December 2012 - 03:59 PM

How feasible would it be to write an app written in as close to pure C as possible?

Let me elaborate a bit. I fully understand that most ndk apps for android will still need a few lines of java to initialize your native code so we'll leave that part out of the equation. I have also read an article on the ndk from google stating that using the NDK simply because you are more familiar with C or C++ than java is not recommended.

I do actually have a fairly extensive language background so although I don't know java if I was serious about writing an android app I would probably find it easy enough to learn. This is purely from a theoretical point of view. I don't have any intentions on getting into android app development as I don't have access to a working android handset, I use a windows phone and my old android handset has a dodgy touchscreen and crashes alot. Its just I came across a reference to the NDK somewhere once and am learning C to use on a microcontroller and then started thinking about this question.

Do you think it is possible to write an entire android app with either C or C++ (with the exception of the lines required to initialise your native code.

What problems do you think someone would come across?

Are there any apps that somewhat bizarrely use this approach?

Is there really any speed benefit? (I would normally expect there to be but apparently there are some weird quirks with how "native" code runs on android)

Wouldn't you lose support for x86 and MIPS handsets?

PARTNERS