Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17060 Discussions

Single App package for IA and ARM

Lance_A_Intel
Employee
686 Views

Hello,

Can you provide any information or best known methods for combining an IA version and an ARM version of the same application that are currently  built as 2 separate apps into a single package that can be deployed in Google Play as one app and run correctly on both architectures?

Thanks

0 Kudos
3 Replies
Joshua_B_Intel
Employee
686 Views

I'm assuming you're talking about an app that uses some "native" code, like C++, through JNI and the Android NDK, where you compile architecture-specific binaries. If you're talking about a Java/Dalvik app, there's nothing special you need to do to get it to run on both IA and ARM - the Dalvik VM takes care of that for you.

For NDK apps, you can specify which architectures you want to support in the application.mk file, with the "APP_ABI=" parameter. You can specify:

[cpp]APP_ABI := all[/cpp]

or

[cpp]APP_ABI := armeabi armeabi-v7a x86[/cpp]

You can find more detail in this article about creating and porting NDK apps for IA, specifically the last section, "Using x86 NDK toolset to port existing NDK Apps to IA based devices".

Let us know if that didn't answer your question, or you need more help. :-)

0 Kudos
Lance_A_Intel
Employee
686 Views

Good info, I have been looking into APP_ABI and the article is very useful.

Thanks!

0 Kudos
Joshua_B_Intel
Employee
686 Views

Glad to hear it. Let us know if there's anything else we can do to help. 

0 Kudos
Reply