[fpc-pascal] JNI/Android: Java events calling pascal code

patspiper patspiper at gmail.com
Mon Apr 21 20:44:16 CEST 2014


Is it possible to implement using JNI java events callbacks without 
writing java code? For example, the android media player defines:

setOnCompletionListener(MediaPlayer.OnCompletionListener listener)
which registers a callback to be invoked when the end of a media source 
has been reached during playback.

How can a pascal method be assigned to that callback so that it is 
called when the end has been reached?


More information about the fpc-pascal mailing list