Android: ASensorManager_getInstance()
deprecated since API level 26
#11404
Milestone
ASensorManager_getInstance()
deprecated since API level 26
#11404
The SDL Sensor API in Android currently uses
ASensorManager_getInstance()
to initialize sensors. However, this function has been deprecated since API level 26 and replaced withASensorManager_getInstanceForPackage()
instead. More info here.This deprecation generates the following warning when building:
This is the only warning we can see about SDL (using version
2.30.9
, but the same code is used in SDL3) at the moment.Perhaps a pre-processor condition could be used to use the older function if API level < 26 and the new one otherwise?
The text was updated successfully, but these errors were encountered: