Translating a Java Method to Native C++ (Android)

Описание к видео Translating a Java Method to Native C++ (Android)

In this video, we take a Java method declared in Android and see how we can rewrite the same functionality in native code. To do this, we use the Java Native Interface (JNI) functions to perform a Java method invocation in C++ code.

---

Timestamps:
00:00 Intro
00:55 Creating C++ App
02:33 Demo Application
03:04 Calling from Native
05:32 Watch your Types!
08:06 Passing Integers
09:50 Declaring Methods via JNI
15:32 Getting the Method ID to call
18:12 Getting the Signature of the Method
22:40 Calling the Method
24:40 Adding Extra Parameters
25:43 Returning Values
28:05 Demo Time!
28:32 Recap

---

Links Mentioned in Video:

JNI Reference:
https://docs.oracle.com/javase/8/docs...

JNI Functions:
https://docs.oracle.com/javase/8/docs...

JNI Signatures:
https://docs.oracle.com/javase/8/docs...

Android Studio:
https://developer.android.com/studio

---
laurieWIRED Twitter:
  / lauriewired  

laurieWIRED Website:
http://lauriewired.com

laurieWIRED Github:
https://github.com/LaurieWired

laurieWIRED HN:
https://news.ycombinator.com/user?id=...

laurieWIRED Reddit:
  / lauriewired  

Комментарии

Информация по комментариям в разработке