I'm new to Android NDK, and I was reading these tips on the Android Developer site. It recommends using JNI_OnLoad to register your native methods, but doesn't give much detail on how to do that.
Searching Google's NDK sample repo on GitHub only turned up one usage of JNI_OnLoad, and it doesn't call RegisterNatives. Searching the web didn't turn up much on how to do this either.
I feel like I'm missing something. This is supposed to be the correct way to do it, according to Google, but their own examples use the "discovery" method naming approach instead.
Is this perhaps an old way of doing it, that's not really done anymore?