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?
6677Member Since 12 Jun 2012
Offline Last Active Mar 16 2013 08:42 AM
- Group Members
- Active Posts 444
- Profile Views 5,528
- Submitted Links 0
- Member Title Member
- Age Age Unknown
- Birthday Birthday Unknown