Skip to Content
Android Native Development Kit Cookbook
book

Android Native Development Kit Cookbook

by Liu Feipeng
March 2013
Intermediate to advanced
346 pages
8h 4m
English
Packt Publishing
Content preview from Android Native Development Kit Cookbook

Using a library as a prebuilt library

The previous recipe described how to build an existing library with its own build system. We obtained a compiled static library libbmp.a of the open source libbmp library. This recipe will discuss how to use a prebuilt library.

How to do it...

The following steps build an Android NDK application which uses prebuilt library. Note that the sample project is based on what we have done in the previous recipe. If you have not gone through previous recipe, you should do it now.

  1. Open the PortingWithBuildSystem project that you created in previous recipe. Add a Java file MainActivity.java under the cookbook.chapter8.portingwithbuildsystem package. This Java file simply loads the shared library PortingWithBuildSystem ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Android 9 Development Cookbook - Third Edition

Android 9 Development Cookbook - Third Edition

Rick Boyer
Android High Performance Programming

Android High Performance Programming

Enrique López Mañas, Diego Grancini
Learning Embedded Android N Programming

Learning Embedded Android N Programming

Ivan Morgillo, Stefano Viola
Learning Android, 2nd Edition

Learning Android, 2nd Edition

Marko Gargenta, Masumi Nakamura

Publisher Resources

ISBN: 9781849691505Other