Android NDK and rendering of live wallpapers

I'm just looking to start learning NDK, keeping in mind one specific project:

I want to constantly visualize a changing raster map from the NDK side in order to display it in live wallpaper.

(therefore, I'm not talking about rendering OpenGL texture here, but about rendering in Bitmap)

I did a bit of work on Google and found out that it’s possible to directly manipulate Bitmap pixels. But I also found that the documentation says that this feature is only available with Android 2.2. And I would like to support 2.1 in my live wallpaper.

On the other hand, I found several projects that make similar material - draw something from ndk and show it in live wallpaper. And they work on 2.1. Examples: the wonderful Live Wallpaper video , and I think Shake Them All Live Wallpaper does the same.

So the question is: did I miss some other way to continuously render LW besides directly manipulating Bitmap data? Or something else that I made a mistake? :)

+5
source share
1 answer

As far as I know, other projects that render using the NDK and use jnigraphicsup to 2.2 actually include this library in the project and load it as a 3rd party library.

, , . PREBUILT_SHARED_LIBRARY android-ndk-r5b/docs/ANDROID-MK.html.

jnigraphics :

android-ndk-r5b/platforms/android-8/arch-arm/usr/lib/libjnigraphics.so

, , NDK ( , - ), , , jnigraphics Android 2.2 .

, .

+5

All Articles