Porting Native Code to Android: From Business Case to Coding

Currently being revised  — see the bottom of this page for latest details.

Do you want to port an existing software app to Android? Do you have questions about Android native development and tools to use?

This new e-Book by Charles A. Wilde includes all 5 blog posts he wrote about Android native development plus additional new material to help you build Android applications using C and C++ native code.

smallcover-PortingNativeCodetoAndroid

There are many important mobile phone operating system platforms in existence and the playing field seems to be shifting from quarter to quarter. Here is an e-book that can help you develop a business case and jump start development.

In Porting Native Code to Android: From Business Case to Coding,
Charles A. Wilde offers a high level review of the mobile phone platform landscape, and details important aspects to help you make a decision regarding the platform(s) best for your needs.

A Wealth of Insights for Both Managers and Developers

For managers, there is an overview of the process, difficulties, and possible solutions for developing or porting native code to Android.  Included are insights into some of the design decisions made by the Android development team, and the impact those decisions will make on your Android native development projects.

For developers, it is a quick start guide to Android app development, with a detailed “how to” guide to assembling and using the software development tools necessary for both native and managed Android applications. And, for developers familiar with Microsoft Visual Studio, this  book provides clear and concise instructions on how to transition to Android tools, including Eclipse, the Android Development Tools, and how to develop and debug native C++ code on Android.

Writing managed Java code for Android is easy with a full and complete set of developer tools. But, you need to install the tools correctly.  Porting Native Code to Android details the installation of these tools for developers new to the open source world.

While writing Java is a easy, writing native C++ code for Android is complex, with poorly supported developer tools. This e-book describes the process of developing native code shared libraries for use with managed Java code on the Android platform so you can avoid false starts and lost development time. (See Table of Contents)

Mobile Development Expert Writes from Windows Developer Perspective

Charles Wilde has been developing reliable enterprise Windows Mobile phone applications for eight years. With over 20 years experience in software development and consulting, Wilde has developed considerable expertise in successfully delivering complex software where other developers have struggled.

Are you looking for detailed instructions on how to leverage your existing Windows environment?

Writing from the perspective of a Windows developer, Wilde demonstrates how to develop open source software by utilizing virtual machines and free open source software development tools. He shows what works, and what doesn’t work for developing or porting C/C++ native code to the Android platform. By using this e-book as your quick start reference, you will get insights on problems you may encounter when porting some types of C++ code along with possible resolutions.  These problems include utilizing STL (Standard Template Library), RTTI (run time type information), and C++ exceptions.

Porting Native Code to Android offers detailed practical examples of how to develop and integrate native C++ shared libraries with Java managed code along with:

  • Examples of debugging native  C++ code on the Android emulator.
  • Detailed examination of the methods and tools used to “glue” native C++ shared libraries to Java main  applications in the  Android environment.
  • How and why Android Java is different from JME (J2ME).  How Android C++ is different from GNU C++.  How to bridge these differences in your project.

This English language e-book has 49 pages of clear and concise explanations with links to tools and additional resources to save you hours of research. New material about the current mobile phone market and a completely new chapter on common problems unique to Android have been added to blog posts which originally appeared  in the author’s blog, “Wilde on Mobile and Embedded,” in 2009. www.aton.com/blog

Who is Charle A. Wilde?

As Chief Software Architect of Aton International, Inc., Charles  A. Wilde envisioned and orchestrated the development of Aton’s current line of mobile and embedded software products and services. The high quality results reflect his unique understanding of how to combine software with electronic devices to satisfy business requirements.

His expertise in merging devices with systems has been instrumental in Aton International’s becoming a highly regarded Microsoft Gold Certified Partner for ISV and Mobility Solutions and  Microsoft Windows Embedded Partner.

Wilde is now architecting the next generation of mobile and embedded development for Aton and Aton’s clients using the Google Android Operating System in addition to Microsoft technologies such as Windows Phone and Windows Embedded and other mobile operating systems.

Since 1981, he has successfully developed and marketed commercial communications and operating system software products for the US and international markets. He has delivered custom software solutions for business, consumer and government applications for original equipment manufacturers (OEM), independent software vendors (ISV) and system integrators (SI) with embedded, desktop and networked systems.

With over 20 years experience in software development and consulting, Mr. Wilde has directed and produced the development of a myriad of reliable solutions. He holds a BSEE degree from Seattle University and is a member of the IEEE.

Mr. Wilde is uniquely qualified to assist mobile app developers to set up the proper Android development environment, especially those with previous experience primarily in Windows, and provide clear and concise explanations that bridge the differences of operating systems. Download your copy today

Porting Native Code to Android Table of Contents


About the Author iv

Developing an Android Mobile Application Using Native Code 1

  • Nine Major Mobile Operating Systems 1
  • Worldwide: Smartphone Sales to End Users by Operating System, 4Q08 (Th) 2
  • 2009 Update: 3
  • Which Mobile Phones Should We Develop For? 4
  • The Mobile OS Winner 6

Android Software Development Tools:  What Do I Need? 7

  • C/C++ Native Code Development for Android 9
  • What Are We Thinking? 10
  • Android Development on Windows XP 11

Android Native Development on Ubuntu 9.04 (Jaunty Jackalope) 13

  • The Bottom Line: A Linux Installation 13
  • Installing the VirtualBox Guest Additions 15
  • Make Your Ubuntu File System Visible to Windows 15
  • Installing Java JDK and Eclipse Tools 16
  • Installing the Android SDK 17
  • Installing the ADT Plugin into Eclipse 17

Android Native Development Using the Android Open Source Project 19

  • Tools for Native Code Development 19
  • A Simple, Pure Native Code Application for Android 20
  • Android Native Development Debugging Techniques 25

Android Native Libraries for Java Applications 31

  • A Simple Android Java Application That Uses a Native Code Library 31
  • Internal Details of a Native Code Library 34
  • Automating The Development of JNI Interfaces with The javah Tool 34
  • Designing A Native Code Library That Is Compatible With Java 37
  • Compiling and Building the Native Code Library 39
  • Compiling and Building the Android Java Application That Uses the Native Code Library 41
  • Merging the Android Java Application and the Native Code Library into an Installable Android Application 43
  • Installing the Android Java Application That Uses a Native Code Library 44
  • Debugging the Android Java Application That Uses a Native Code Library 45

Other Considerations for Porting Projects Written in C++ to Android 47

  • Android Native Development Kit (NDK) 49

No Waiting!

Download link is sent immediately after purchase. Aton International, Inc. uses Share-It! (a Digital River company) for secure online ordering in the US and internationally. For your convenience, you may also order a Backup CD or Extended Download (24 months) from Share-It! when you purchase the downloadable e-book.

This e-book is currently only available from this website and through the Share-It! catalog.

Porting Native Code to Android by Charles A. Wilde is published by Aton International, Inc., Mountain View, CA. Publish Date: November 2009

Price: USD$9.98.– US $ $4.98–Currently being revised. Purchasers will receive a copy of the new e-book when it is released. Or, you can subscribe to our RSS feed to be notified about the new release.


Click Here to BUY NOW


Download your copy today and start creating your Android native code mobile app. You’ll automatically receive e-book updates and supporting materials when they are issued at no additional charge.

Please note:


You are not required to buy the Extended Download to received these updates. Just remove it from the shopping cart if you don’t wish to purchase an Extended Download. Share-it! provides this in our shopping cart as a courtesy for our customers.

Want to Forward This to a Friend?

Click on the “Download your copy today” link in the paragraph above, and then, click the “Recommend” button under the product image.




Related posts

coded by nessus

Comments RSS    Trackback URL

No Comments

No comments yet.

Sorry, the comment form is closed at this time.