O'Reilly logo

Android NDK Beginner's Guide by Sylvain Ratabouil

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Handling Java arrays

There is one type we have not talked about yet: arrays. Arrays have a specific place in JNI like in Java. They have their proper types and their proper API, although Java arrays are also objects at their root. Let’s improve the Store project by letting users enter a set of values simultaneously in an entry. Then, this set is going to be communicated to the native backend in a Java array which is then going to be stored as a classic C array.

Note

Project Store_Part3-3 can be used as a starting point for this part. The resulting project is provided with this book under the name Store_Part3-4.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required