Getting the API version of Android in Godot 3.5

Post any engine-related development questions or issues you are having to receive advice, support, or help.
Post Reply
User avatar
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 :? :? :cry: :?:

Tags:
User avatar
DaveTheCoder
Posts: 38
Joined: Tue Jul 18, 2023 1:52 am

From the Godot 4.1 documentation for OS.get_version():
For Android, the SDK version and the incremental build number are returned. If it's a custom ROM, it attempts to return its version instead.
https://docs.godotengine.org/en/4.1/cla ... et-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.
Post Reply