We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3418

Summary: Android Init : error message
Product: SDL Reporter: Sylvain <sylvain.becker>
Component: buildAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: philipp.wiesemann
Version: HG 2.0   
Hardware: All   
OS: Android (All)   

Description Sylvain 2016-08-30 14:15:52 UTC
I saw the message: "SDL: Couldn't locate Java callbacks, check that they're named and typed correctly"

There is a small error in the line of "src/core/android/SDL_android.c":

"midCaptureOpen" has *two* "!" with a line return.

Line 147


 146     if (!midGetNativeSurface ||
 147        !midAudioOpen || !midAudioWriteShortBuffer || !midAudioWriteByteBuffer || !midAudioClose || !
 148        !midCaptureOpen || !midCaptureReadShortBuffer || !midCaptureReadByteBuffer || !midCaptureClose ||
 149        !midPollInputDevices) {
 150         __android_log_print(ANDROID_LOG_WARN, "SDL", "SDL: Couldn't locate Java callbacks, check that they're named and typed correctly");
 151     }
Comment 1 Philipp Wiesemann 2016-08-30 19:30:34 UTC
This patch is now https://hg.libsdl.org/SDL/rev/80190c2a271d, thanks!