Getting the API version of Android in Godot 3.5
- dumbOldMan
- Posts: 8
- Joined: Sat Jul 29, 2023 5:29 am
- Location: Mindanao, Philippines
Hello!, I'm here again to see if there's a way to get the Android's device Api level and use it as the basis in making a compatibility check, and according to Bing, OS.get_android_api_level()? exist in Godot 3.5 but the engine says it does not exists, I say its for the 4.x i guess?
BugoManGudKo > ImReallySoDumb > DumbOldMan
Tags:
- DaveTheCoder
- Posts: 38
- Joined: Tue Jul 18, 2023 1:52 am
From the Godot 4.1 documentation for OS.get_version():
I don't know if there's a way of getting that information in Godot 3. Maybe OS.get_environment() or OS.shell_open() could do it? Research would be needed.
https://docs.godotengine.org/en/4.1/cla ... et-versionFor Android, the SDK version and the incremental build number are returned. If it's a custom ROM, it attempts to return its version instead.
I don't know if there's a way of getting that information in Godot 3. Maybe OS.get_environment() or OS.shell_open() could do it? Research would be needed.