Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move sensor handling to a callback. #1004

Merged
merged 3 commits into from
May 1, 2024
Merged

Conversation

DanAlbert
Copy link
Member

The apparent change in minSdkVersion here isn't actually changing much. The NDK hasn't supported ICS in a long time, and 21 is the minimum for modern NDKs (though I think this sample is still using an NDK that supports 19, it won't soon). The raise is needed for android_set_abort_message.

This was only done so it could use ASensorManager_getInstanceForPackage
on newer devices and ASensorManager_getInstance on older devices. We can
just use ASensorManager_getInstance on all devices and spare the mess.
@DanAlbert DanAlbert enabled auto-merge (rebase) April 30, 2024 21:28
The apparent change in `minSdkVersion` here isn't actually changing
much. The NDK hasn't supported ICS in a long time, and 21 is the minimum
for modern NDKs (though I think this sample is still using an NDK that
supports 19, it won't soon). The raise is needed for
android_set_abort_message.
@DanAlbert DanAlbert merged commit cbec281 into android:main May 1, 2024
2 checks passed
@DanAlbert DanAlbert deleted the sensor-cleanup branch May 1, 2024 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants