Answer the question
In order to leave comments, you need to log in
How to specify file paths in Kivy?
Good hour! Please tell me if in native python on a PC I can access files like this: file = open('File.txt', 'r', encoding = 'utf-8'), that is, I work with a file that is in a folder with main.py, then how to specify it for a ready-made android application?
Answer the question
In order to leave comments, you need to log in
file = open('File.txt', 'r', encoding = 'utf-8'), that is, I work with a file that is in the folder with main.py,
What does Python have to do with it? To do something more serious than hello world on Kivy, python is not enough. You need to know the Android architecture very well. And I will tell you a secret that there is a big difference between desktop OS and mobile OS. If you don't know the Android architecture, you can forget about Kivy!
If you have not changed your mind, I recommend starting here - developer.android.com
Then this:
File
FileSystem
Data and file storage overview
When you read this, and if your interest does not fade, then before reading the file, try to request the necessary permissions to access fs - Request app permissions
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question