jni/Android.mkand write the following content. That's it! Your application is now STL-enabled, thanks to this single line:
APP_STL = stlport_static
Of course, enabling the STL is useless, if we do not actively use it in our code. Let's take advantage of this opportunity to switch from asset files to external files (on a
sdcard or internal memory).
fstreamstl header to read files.
ifstreamobject (that is, an input file stream). We are also going to need a buffer for the
descript()method and the
ResourceDescriptorclass. Descriptors ...