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 - SDLActivity.java is missing the getContext static method.
Summary: SDLActivity.java is missing the getContext static method.
Status: RESOLVED INVALID
Alias: None
Product: SDL
Classification: Unclassified
Component: *don't know* (show other bugs)
Version: HG 2.0
Hardware: ARM Android (All)
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-25 04:30 UTC by Gabriel Jacobo
Modified: 2011-08-26 05:47 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.