Daily Archives: April 28, 2015

Uncategorized

Shared layer between Objective-C and Java (Start Here)

Published by:


We are getting closer to the truth. At least my version of the truth…

Very soon we will be able to share code between iOS and Android. Without commercial libraries. With 100% of source available. With only some pain.

Yes, there will be pain, so prepare!

I’d say about 4 or 5. Your pain tolerance may be different.
In future posts I will outline a less painful way to share, but it’s a good idea to go though details of this post to see what elements are at play.

Continue reading

Uncategorized

Shared C++ layer with Objective-C and Java using JNI – Tutorial – Part 1

Published by:


The instructions that follow below may be applicable to you if you are hitting some of these points

  • You are starting a new app that needs to work natively on iOS and Android, maybe even on Mac/PC desktops
  • Your iOS apps are getting converted to Android
  • You always wanted to write something in C++ , but were afraid
  • You are very brave and have an unbounded curiosity and patience

Continue reading

Uncategorized

Shared C++ layer with Android using JNI – Tutorial – Part 2

Published by:


If you missed the beginning of this, and landed on this page somehow, and something is not clear, read this link first – with pictures too!
http://codingsimplicity.com/shared-c-layer-with-objective-c-and-java-using-jni-tutorial-part1


First thing is first. You need to make sure you have Android NDK installed and available in PATH.

Modify your .bash_profile or .profile to export PATH and setup ANDROID_NDK variable. Something like this:

And then in a new terminal window try executing command line:
Continue reading