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 1563 - SDL does not support Android versions older than 2.2 (API 8).
Summary: SDL does not support Android versions older than 2.2 (API 8).
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: *don't know* (show other bugs)
Version: HG 2.0
Hardware: All Android (All)
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-03 11:29 UTC by Philipp Wiesemann
Modified: 2012-08-03 21:05 UTC (History)
0 users

See Also:


Attachments
patch for SDLActivity.java (1.02 KB, patch)
2012-08-03 11:29 UTC, Philipp Wiesemann
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Wiesemann 2012-08-03 11:29:23 UTC
Created attachment 918 [details]
patch for SDLActivity.java

Hello,

SDL 2.0 (HG) does not support versions of Android older than 2.2 (API 8) because it uses two newer "convenience methods" [1][2] in SDLActivity.java.

In SDL's README.android the mentioned version is 1.6 (API 4) and in default.properties it is API 5 (which is more true). Both are currently not supported.

I attached a patch which inlines both methods and makes SDL usable with older Android versions again.

[1] http://developer.android.com/reference/android/view/MotionEvent.html#getActionIndex%28%29
[2] http://developer.android.com/reference/android/view/MotionEvent.html#getActionMasked%28%29
Comment 1 Ryan C. Gordon 2012-08-03 21:05:10 UTC
This patch is now hg changeset 0aa624a37ad4, thanks!

--ryan.