Questions about NDK

-1

I'm studying Android programming in Java, and what worries me is that I'll only be able to get a share of the job market because there are IOS and Windows Phone phones that do not use the Java Language, I've heard of a Java tool called NDK (Native Development Kit) is a set of tools that allows you to develop native C or C ++ code

I would like to know if using NDK is it possible to make applications for Windows Phone?

    
asked by anonymous 10.08.2014 / 13:36

2 answers

1

NDK allows portability in the opposite direction : compile a C code on Android. If you have a large body of code in C, you'll be able to make use of it in Android through NDK.

Because C language is supported on most mobile platforms, it is an alternative (which I do not really like, but it is) to write multi-platform code.

In iOS, you can compile C code along with the rest, because Objective-C is a superset of C.

In Windows Phone, which is .NET, it is also possible to compile C code but it has to reside in a proper DLL because it is unmanaged code.

It should be clear that NDK is not a tool that will make your C code work on all of these platforms. NDK lets you make use of C code in an Android project, only.

    
01.09.2015 / 06:15
1
  

I would like to know if using NDK is it possible to make applications for Windows Phone?

No. NDK is a tool to develop in C / C ++ but still on Android. What is possible is to abstract much of the code to a lib in C or C ++ that could also be used on other platforms and only connect to the UI. I've seen apps with a lot of logic in C and a thin Java shell for interface on Android and Objective-C on iOS. You could also add Windows Phone support in this case, but you would still need these specific layers for each platform.

    
17.08.2014 / 07:02