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 1289

Summary: SDLActivity.java is missing the getContext static method.
Product: SDL Reporter: Gabriel Jacobo <gabomdq>
Component: *don't know*Assignee: Ryan C. Gordon <icculus>
Status: RESOLVED INVALID QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: tim
Version: HG 2.0   
Hardware: ARM   
OS: Android (All)   

Description Gabriel Jacobo 2011-08-25 04:30:25 UTC
The Android_JNI_FileOpen seems to rely on a getContext static method that should be present in the SDLActivity class (from SDLActivity.java), however this method is not there in the hg code.
The function is simple enough:

public static Context getContext() {
        return mSingleton;
}
Comment 1 Ryan C. Gordon 2011-08-26 00:21:25 UTC
Adding Tim Angus to the bug report. Tim: was this related to your Android RWOPS patch?

--ryan.
Comment 2 Tim Angus 2011-08-26 02:29:53 UTC
Looks like it is there on line 117? Although I screwed up the tabulation.

http://hg.libsdl.org/SDL/file/022880331cac/android-project/src/org/libsdl/app/SDLActivity.java

Gabriel, perhaps you haven't copied the update to your project copy of "android-project"?

Coincidentally I've recently fixed some (fairly severe) memory leaks with the Android FS stuff. It's probably more appropriate for me to reopen the original bug than stick it here though.
Comment 3 Gabriel Jacobo 2011-08-26 05:38:31 UTC
You can mark as fixed, looks like I had an out of date file.