Urgent.News

What's breaking now, across thousands of outlets.

Tech

Android on iOS, Web & Desktop Efficiently and for Free

We are not the first to bring Android to iOS. Earlier projects brought Android's runtime along with the application. Dalvik was built for Android, including a just-in-time compiler (JIT) that ordinary iOS apps are not permitted to use . Disabling it removes an important source of Dalvik's performance . Dalvik was designed around interpretation and JIT compilation, not ahead-of-time compilation…

Codename One is an open-source framework that enables developers to build native iOS, Android, desktop, and web apps from a single Java or Kotlin codebase. This technology is particularly noteworthy for its ability to compile Android applications into native code for iOS, providing access to iOS capabilities through Codename One APIs and native interfaces.

The framework is designed to optimize performance by removing unused code and compiling the application into native code for iOS. This results in native execution and a user interface that developers control, allowing for future improvements to the application after the initial port.

One of the key features of Codename One is its compatibility layer, which allows developers to import Android activities, XML layouts, and AndroidX code into iOS, desktop, and web applications seamlessly. This compatibility layer acts as a bridge between the two platforms, enabling developers to replace screens individually and mix the two APIs as they migrate.

The repository provided in the source material contains screenshots of the same Android gallery app running on both an Android emulator and Codename One, demonstrating the differences in rendering between the two. While there are visible differences in the appearance, such as a narrower bold face, under-the-status-bar drawing, and Material shadows, Codename One provides developers with control over how these visual elements are rendered across platforms.

In addition to the visual differences, Codename One also allows for efficient development through features like PGO (Profile-Guided Optimization) for faster apps and generational/adaptive garbage collection. These features help developers create high-performance applications with minimal effort.

Overall, Codename One provides a powerful and efficient solution for developers looking to build native iOS, Android, desktop, and web applications from a single codebase, offering a range of features and optimizations to streamline the development process.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

How to review pull requests written by coding agents

A pull request from a coding agent usually looks better than one from a tired human. The description is complete, the code is formatted, the tests pass, and every changed line has a reason.

  • Focus on diff to understand changes and compare with agent's description.
  • Identify all callers of changed functions, types, or exported values using tools.
  • Check adherence to team's established practices and policies.

The Windy Truth: Why Lake Erie Taught Me to Stop Trusting “Perfect Weather”

Weather is always on my mind when I’m sailing Lake Erie. It’s not a lake — it’s a freshwater inland sea with a personality disorder.

  • Lake Erie is a volatile freshwater lake influenced by El Niño.
  • Weather apps and radar forecasts are outdated for Lake Erie's conditions.
  • d3kOS integrates Windy for real-time, comprehensive marine weather data.

More from Friday 16 October →