Search code examples
androidandroid-ndkwebp

WebP for Android


Are there any examples on how to use WebP for Android? Im trying to get a list of webp images and show them in a listview with an imageview.

I know theres a libwebp api and I have integrated it into my Android project using the NDK, but how do I excatly use the api to take my binary webp and show it in an imageview?

Any help would be amazing!


Solution

  • WebP is supported for Android 4.0+, a.k.a. API level 14. You can check using android.os.Build.VERSION.SDK_INT >= 14.