Search code examples
javaandroidobjective-ctranslate

Objective C to Java Android


I have to use an Objective C code and translate it into Java for Android.Actually I've never use Objective C before and it's really gives me headache to translate the code,because it's really different from Java (for me as syntax).Can anyone help me a little with the tranlate or help me to understand what the code is doing..I can't get the idea.

Thanks in advance!!!

Here is the code that I need to translate:

EDIT : Code is removed.


Solution

  • Im not sure about you requirement. But this might be some help. You could convert you obj-c code to c and use the android NDK

    http://marakana.com/forums/android/examples/49.html

    The above is an example to call c code from android apps.