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.
Faiz Malkani · Jul 2, 2015 at 04:54 pm · 1 comment

Material and Material Dark Hit Samsung’s Theme Store

The latest version of Touchwiz, launched alongside the Galaxy S6 and S6 Edge, was aimed at providing a vastly improved software experience in lieu of the bad reputation its predecessors had gained. While this iteration turned out to be a vast improvement in terms of lack of bloatware, fluidity and user experience, Samsung's OEM skin fell short in the aesthetics department by a long shot, abandoning a plethora of Material Design principles and leaving users wanting more. However, Theme Store...

XDA NEWS
Jack Jennings · Jul 2, 2015 at 01:09 pm · 1 comment

Swappa’s New App Helps You Value Your Device

There comes a sad time in everyone's life where you must part ways with your gadgets. Perhaps they are dropped from a height, carelessly hardbricked, or simply stashed in a drawer in favor of a shinier upgrade. Alternatively they might enter the world of the second-hand market, and become someone else's daily driver. Swappa is especially popular for this purpose here at XDA, where thousands of users trust the site enough to buy and sell their devices through it. In fact, we made...

XDA NEWS
Aamir Siddiqui · Jul 2, 2015 at 11:46 am · 2 comments

Xiaomi Sold 34.7 Million Phones In 6 Months

2015 has been a phenomenal year for Xiaomi so far. With a stellar rise in 2014, 2015 saw increased success outside of China for Xiaomi along with tremendous consumer interest in the company's smartphone offerings. The company also increased its ventures outside of smartphones touching everything from routers to selfie sticks. The company took to twitter to announce their recent success. Xiaomi's smartphones sales increased 33% year-on-year, with the company having sold 34.7 Million smartphones in the first half of...

XDA NEWS
Share This