~/talk

Using JNI without running into disaster

TalkinFrenchat AndroidMakers by droidcon 2026 · on Friday, 2026-04-10· at 13:30· [android, security]
slides:none on file

JNI lets Android apps call C from Java and vice versa, but it's easy to misuse—causing type errors, garbage-collector issues, and thread-safety bugs. The talk examines those specific pitfalls (typing, GC interactions, thread-safety) and shows how to avoid them by using C++ features and patterns, with concrete examples drawn from building a system UI for mixed-reality headsets on Android.

AI-written summary · about

  1. 0:00JNI introduction
  2. 6:24What is JNI
  3. 8:52Weak typing trap
  4. 14:56Reference management
  5. 20:38JNI environment and threads
  6. 26:13ClassLoader trap
  7. 29:46JNI best practices
  8. 32:40Conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.