Recycling objects in Android with an Object Pool to avoid garbage collection
Source code (LICENSE) If you need to reduce the work of the garbage collector in Android, like in games development for example, all you can do is reduce the amount of objects you create and recycle...
View ArticlePreserving the state of an Android WebView on screen orientation change
Source code If you’ve tried to use a WebView inside your app, you know that the standard behavior on screen orientation change is not satisfactory in most cases because the full state of the WebView is...
View ArticleSaving the Android WebView cache on the SD card
Source code It could be useful to save the cache of an Android WebView on the SD card (or integrated external memory) especially for devices with a limited amount of internal memory, but how can you do...
View ArticleBuilding libjpeg-turbo for Android
In order to build libjpeg-turbo for Android, here are the tools you’ll need: Linux (Ubuntu Linux works fine) Android NDK libjpeg-turbo source code The compilation process won’t work with Cygwin since...
View ArticleBuilding OpenCV for Android with libjpeg-turbo
Nowadays, OpenCV offers a way to install a common shared library on an Android device and use it in multiple apps without the need to build every single app with OpenCV inside it: this is called OpenCV...
View Article