jerdog · Sep 16, 2012 at 11:00 am

Google Tool Helps Developers Port Android Apps to iOS

If you’re an app developer who has created apps for Android and put them on Google Play, you no doubt have seen the advantage of creating applications for the largest mobile OS. Maybe you would like to “share the love” with users of that other mobile OS but you aren’t familiar with Objective-C, so you have chosen to stay away from it.

There exist many tools out there to help you convert JAVA to Objective-C, with differing results. Given that JAVA and Objective-C are almost worlds apart, trying to port or convert can be time consuming, as you’ll have to sift through the bytecode and error-output. Google however has created a tool, called J2ObjC, which will convert your JAVA classes to Objective-C classes, thus directly utilizing the iOS Foundation Framework. Essentially the tool allows JAVA code to be part of an iOS application.

Here’s what they have to say about it:

J2ObjC is an open-source command-line tool from Google that translates Java code to Objective-C for the iOS (iPhone/iPad) platform. This tool enables Java code to be part of an iOS application’s build, as no editing of the generated files is necessary. The goal is to write an app’s non-UI code (such as data access, or application logic) in Java, which is then shared by web apps (using GWT), Android apps, and iOS apps.

The tool supports most JAVA language and runtime features, but is not guaranteed to work with all possible ways of using JAVA. The tool does not provide the developer with a platform-independent UI toolkit, so you still would need to use native iOS UI code, but this is a great step for developers looking to make cross-platform applications. Make sure to visit the project page for information on using the tool.


_________
Want something on the XDA Portal? Send us a tip!
TAGS:

jerdog

jerdog is an editor on XDA-Developers, the largest community for Android users. Jeremy has been an XDA member since 2007, and has been involved in technology in one way or another, dating back to when he was 8 years old and was given his first PC in 1984 - which promptly got formatted. It was a match made in the stars, and he never looked back. He has owned, to date, over 60 mobile devices over the last 15 years and mobile technology just clicks with him. In addition to being a News Editor and OEM Relations Manager, he is a Senior Moderator and member of the Developer and Moderator Committees at XDA. View jerdog's posts and articles here.
Mario Tomás Serrafero · Apr 25, 2015 at 11:00 am · 1 comment

XDA Picks: Best Apps of the Week (Apr 17 – 24)

Apps are at the front and center of any smartphone experience, and with over a million apps on the Google Play Store and new apps being submitted to our forums every day, staying up to date on the latest apps and games can be a hassle. At XDA, we don’t discriminate apps - if it’s interesting, innovative, original or useful, we mention them. The XDA Portal Team loves apps too, and we usually share and discuss the latest app releases...

XDA NEWS
GermainZ · Apr 25, 2015 at 10:24 am · 6 comments

Glimpse Notifications: Easier Lockscreen Notifications

Lollipop brought a revamp to the lockscreen, taking away custom widgets but showing your notifications instead. If you're a fan of that, you might want an easier way to check your notifications as they come in, without losing your current lockscreen. Glimpse Notifications by XDA Senior Member xrad offers just that. You'd normally have to turn your screen on manually to see your notifications. Instead, Glimpse Notifications will do it for you when a notification comes in. That doesn't mean...

XDA NEWS
Emil Kako · Apr 24, 2015 at 03:11 pm · 4 comments

What Are the Best Looking Apps on Android?

As more developers are updating their apps with Material Design elements, we're starting to see a plethora of beautiful new apps on the Play Store. But which ones are the best? Let us know what you think the best looking apps on Android are and why.

DISCUSS
Share This