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:
GermainZ · Mar 5, 2015 at 01:50 pm · no comments

HTC to Replace Swype with TouchPal

According to engadget (citing TouchPal as well as an internal source), HTC aims to replace Swype with TouchPal as the default input method in upcoming devices, including the new HTC One M9. The official TouchPal Twitter account also tweeted the engadget article about this, further confirming the move. What prompted this move? The CEO of CooTek, the company behind TouchPal, says it's because of their better contextual prediction and language support. If you actually look at the supported languages, you'll...

XDA NEWS
Emil Kako · Mar 5, 2015 at 12:10 pm · no comments

Do You Think the Apple Watch Will Be a Huge Success?

Many people are under the impression that once Apple finally launches its smartwatch, the market for wearables will suddenly become mainstream and be taken to the next level. Taking an idea that already exists and making it incredibly successful isn't something new to Apple, but does the Apple Watch have what it takes? The wearable hasn't even shipped yet, but has already won multiple awards and has been featured on numerous fashion magazine covers. Do you think the Apple Watch will be a huge success? Let us know your thoughts.

DISCUSS
Mario Tomás Serrafero · Mar 5, 2015 at 10:09 am · no comments

Huawei: A Giant the Western World Should Look Out For

The smartphone landscape is drastically changing its focus. What was once a North-America-centric monopoly of high-specification phones is now merely an afterimage of the past. The meat of the game is elsewhere now; emerging markets looking for good bang-for-buck are what OEMs are increasingly aiming towards, and in this new game the old players must adapt-or-die. Xiaomi has grown at one of the most notable rates in the industry, leading it to become the world's most valuable start-up; and its...

XDA NEWS
Share This