How to determine API build version on Andriod in Python/Kivy
94 views
Skip to first unread message
Nick Michael
unread,
Mar 31, 2021, 1:07:25 AM3/31/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Kivy users support
Hi,
I am in need of determining the android build version (i.e. API 28, 29 etc) within my application. I've seen an old thread on this but its now obsolete. Is there a module for this or a way of doing this by invoking a java class?
Thanks
Robert
unread,
Mar 31, 2021, 12:35:42 PM3/31/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Kivy users support
The api of the device on which the app is run:
from android import api_version
Nick Michael
unread,
Apr 1, 2021, 12:41:24 AM4/1/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to kivy-...@googlegroups.com
Thanks for your response.
When I try to install package android both in PyCharm and Ubuntu I get the following.
ERROR: Could not find a version that satisfies the requirement android
Any other packages I can use?
Alexander Taylor
unread,
Apr 1, 2021, 8:41:45 AM4/1/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Kivy users support
The android module is not available except on the android platform.
For the target api, set it to 29 and you'll be fine for now. I'm not sure if you mean something different by "build version" though?
Nick Michael
unread,
Apr 1, 2021, 11:18:00 AM4/1/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Kivy users support
Wow. I didn't know you could do that directly. I thought you needed to install a package. I learned something new today!