April 2015
Beginner to intermediate
494 pages
10h 26m
English
We need to create and initialize all the structures we will use for the next section of the chapter:
jni/Store.h file, which defines store data structures:StoreType enumeration will reflect the corresponding Java enumeration. Leave it empty for now.StoreValue union will contain any of the possible store values. Leave it empty for now too.StoreEntry structure contains one piece of data in the store. It is composed of a key (a raw C string made from char*), a type (StoreType), and a value (StoreValue).Note that we will see how to set up and use C++ STL strings in Chapter 9, Porting Existing Libraries to Android.
Store is the main structure that defines a fixed size array of ...Read now
Unlock full access