Feeds

Google Android code goes native

Dalvik VM hugs C, C++

Build a business case: developing custom apps

Android developers can now slip native code into apps written for Android-based devices using Google's new native development kit (NDK).

The Android 1.5 NDK, which was announced Thursday on the Android developers blog, doesn't actually allow developers to run completely native code on devices. Instead, it supports adding native code into apps written to run in Dalvik virtual machine (DVM) instances.

Specifically, the NDK lets 'droid devs execute parts of DVM-bound apps using native-code languages such as C and C++.

But there are drawbacks to this method - so much so that the announcement warns developers that the NDK isn't for everybody. "As a developer," the announcement reads, "you will need to balance its benefits against its drawbacks, which are numerous!"

The announcement also details some of the pros and cons - actually, in their ordering, the cons and pros - of using the NDK:

Your application will be more complicated, have reduced compatibility, have no access to framework APIs, and be harder to debug. That said, some applications that have self-contained, CPU-intensive operations that don't allocate much memory may still benefit from increased performance and the ability to reuse existing code. Some examples are signal processing, intensive physics simulations, and some kinds of data processing.

The addition of the Android 1.5 NDK to the 'droider's arsenal indicates that the Android team is working to attract more developers to the platform - particularly Symbian developers, we would imagine, or possibly iPhone devs who have seen their hard work disappear into the horde of 50,000 apps now clogging the iTunes App Store.

If you're a developer with cojones of sufficient weight to wrestle with the obstacles outlined above, the Android team has set up a forum where you can swap notes with other native-code 'droiders. ®

Boost IT visibility and business value

More from The Register

next story
The Return of BSOD: Does ANYONE trust Microsoft patches?
Sysadmins, you're either fighting fires or seen as incompetents now
Microsoft refuses to nip 'Windows 9' unzip lip slip
Look at the shiny Windows 8.1, why can't you people talk about 8.1, sobs an exec somewhere
Intel's Raspberry Pi rival Galileo can now run Windows
Behold the Internet of Things. Wintel Things
Linux Foundation says many Linux admins and engineers are certifiable
Floats exam program to help IT employers lock up talent
Microsoft cries UNINSTALL in the wake of Blue Screens of Death™
Cache crash causes contained choloric calamity
Eat up Martha! Microsoft slings handwriting recog into OneNote on Android
Freehand input on non-Windows kit for the first time
Linux kernel devs made to finger their dongles before contributing code
Two-factor auth enabled for Kernel.org repositories
prev story

Whitepapers

Implementing global e-invoicing with guaranteed legal certainty
Explaining the role local tax compliance plays in successful supply chain management and e-business and how leading global brands are addressing this.
7 Elements of Radically Simple OS Migration
Avoid the typical headaches of OS migration during your next project by learning about 7 elements of radically simple OS migration.
BYOD's dark side: Data protection
An endpoint data protection solution that adds value to the user and the organization so it can protect itself from data loss as well as leverage corporate data.
Consolidation: The Foundation for IT Business Transformation
In this whitepaper learn how effective consolidation of IT and business resources can enable multiple, meaningful business benefits.
High Performance for All
While HPC is not new, it has traditionally been seen as a specialist area – is it now geared up to meet more mainstream requirements?