Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Skia in Android NDK

Tags:

android

skia

Is it true that android.graphics.* depends on the native Skia library? If so, is it possible to access the Skia library in my native C/C++ codes?

like image 671
pinglamb Avatar asked Jun 14 '11 10:06

pinglamb


People also ask

Is Skia used in Android?

Skia is an open source 2D graphics library which provides common APIs that work across a variety of hardware and software platforms. It serves as the graphics engine for Google Chrome and ChromeOS, Android, Flutter, and many other products.

What can I do with Android NDK?

The Native Development Kit (NDK) is a set of tools that allows you to use C and C++ code with Android, and provides platform libraries you can use to manage native activities and access physical device components, such as sensors and touch input.

Is Android NDK required?

It still requires the use of NDK, but all the work of exposing the capabilities to Android apps has already been done.

What is NDK used for in Android Studio?

Android Studio provides wizards and templates that verify your system requirements, such as the Java Development Kit (JDK) and available RAM, and configure default settings, such as an optimized default Android Virtual Device (AVD) emulation and updated system images.


1 Answers

Skia is not offered as a lib/sharedlib inside android, as its api is not guaranteed to be stable over time.

there is no sample implementation of controls in C/C++, all the widget/view sub-system is done in Java

for skia http://code.google.com/p/skia/

like image 52
Rishabh Avatar answered Oct 19 '22 16:10

Rishabh