Hello everyone:
I know there has been a lot of discussion on this topic, but I am very inexperienced and don't understand it.
What I need is for my app running on Android 10 to read a CSV file, comma separated, that is in the Documents folder and write it to a label. I have tested on older phones and I get it but not with Android 10. I have tried with Efile and not either.
Can you help me?
Well, for Android 10+, the easiest place to store files is in the app's application specific directory (ASD) where the user has read/write access. Then you can use the built-in file component to read/write the csv file.
Are these static data, i.e. you generate it only once to then use in the app? If yes, upload the file into the assets of your app (media section) and read it from there
It's so easy what I want to do, I'm not explaining it well.
I have a csv file that I generate on the PC. For example:
2,APZU3805498
3,BEAU2794838
4,CMAU0769155
5,CSLU1139924
6,CSNU6261439
So I just want to read this file from the app and put it in a label.
maintain the csv file in a Google Sheet or a CloudDB or a FirebaseDB etc. online instead of in a folder on your PC. A Google sheet can be updated using an app to modify the data or can be accessed directly by you PC.
Read and download the csv from the Sheet or database to your app as a List or a csv and place it in a Label.