V
V
vadim08722017-02-03 14:43:49
Android
vadim0872, 2017-02-03 14:43:49

Can't find api under android ndk?

It was necessary to implement a project in c / c ++ for android, but I ran into a problem that there is no such api for native code. For example, I need to get information about the operator, such a function is described in sdk ( TelephonyManager-> getNetworkOperatorName ()), but few functions are described for ndk, and there is no such or similar one. But after all, in fact, such operations, "under the hood", are still processed by native code, so how to find this implementation, or find a normal api using ndk?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GavriKos, 2017-02-03
@GavriKos

Make method call forwarding from pluses to Java.
The NDK does not and in fact should not contain all the same APIs and methods that the AndroidSDK and the Java droid API contain.
About the fact that "under the hood is processed by native code" - why did you decide so? In general, everything in ASM is eventually converted - write in asma, what's there ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question