Daily Archives: April 19, 2015

Uncategorized

Sharing code between iOS and Android using j2objc

Published by:


From the start the concept seems interesting. Write some code in plain Java, run it though a translator, which will generate some objective-c equivalents calling into the framework’s JRE emulation library. It all seems legit.

So I go and compile the “Hello world” example and yes it works, the excitement is still there,  so let me try something more useful than a “Hello world”. Since I’ve been into “pull to refresh” apps lately, and I need to keep going with those I will try to pull down some JSONs down! Yeah!

Continue reading

Uncategorized

Reusing code between mobile platforms

Published by:


After years of writing iOS apps and backends I have finally ventured into Android development. Yes, I’m a little late to the party, and yes, it’s quite different from iOS development, not in terms of programming constructs, but in terms how it feels.

So I jump headlong into Android, plowing though samples, occasional reading, and bug fixing someone else’s code. It’s all good.

Majority of my initial involvement with Android has to do with the things I already know well. Persistence, business logic, downloading some JSON from the network, serialization, search, pagination, etc.

And then it hits me!
I’ve already done all of this before! On iOS version of the app!

Continue reading