Feeds

Google Android code goes native

Dalvik VM hugs C, C++

SANS - Survey on application security programs

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. ®

High performance access to file storage

More from The Register

next story
This time it's 'Personal': new Office 365 sub covers just two devices
Redmond also brings Office into Google's back yard
Oh no, Joe: WinPhone users already griping over 8.1 mega-update
Hang on. Which bit of Developer Preview don't you understand?
Microsoft lobs pre-release Windows Phone 8.1 at devs who dare
App makers can load it before anyone else, but if they do they're stuck with it
Half of Twitter's 'active users' are SILENT STALKERS
Nearly 50% have NEVER tweeted a word
Internet-of-stuff startup dumps NoSQL for ... SQL?
NoSQL taste great at first but lacks proper nutrients, says startup cloud whiz
IRS boss on XP migration: 'Classic fix the airplane while you're flying it attempt'
Plus: Condoleezza Rice at Dropbox 'maybe she can find ... weapons of mass destruction'
Ditch the sync, paddle in the Streem: Upstart offers syncless sharing
Upload, delete and carry on sharing afterwards?
New Facebook phone app allows you to stalk your mates
Nearby Friends feature goes live in a few weeks
Microsoft TIER SMEAR changes app prices whether devs ask or not
Some go up, some go down, Redmond goes silent
prev story

Whitepapers

Securing web applications made simple and scalable
In this whitepaper learn how automated security testing can provide a simple and scalable way to protect your web applications.
3 Big data security analytics techniques
Applying these Big Data security analytics techniques can help you make your business safer by detecting attacks early, before significant damage is done.
The benefits of software based PBX
Why you should break free from your proprietary PBX and how to leverage your existing server hardware.
Top three mobile application threats
Learn about three of the top mobile application security threats facing businesses today and recommendations on how to mitigate the risk.
Combat fraud and increase customer satisfaction
Based on their experience using HP ArcSight Enterprise Security Manager for IT security operations, Finansbank moved to HP ArcSight ESM for fraud management.