Hello!
My first tested phone has sdcard, thats why: strPath = /downloads/do-not-delete/
listFilename (amount of this files is big):
- myfile1.csv,
- myfile2.mp3,
To read myfile1.csv I used FILE READ sourse: /downloads/do-not-delete/myfile1.csv
To read myfile2.mp3 I used PLAYER sourse: /mnt/sdcard/downloads/do-not-delete/myfile2.mp3
But another tested phone has an itegrated (emulated) sdcard (LENOVO VIBE X) which adress is: /storage/emulated/0/
Previous FILE READ sourse and PLAYER sourse stopped to work.
Thats why: strPath (was not changed) = /downloads/do-not-delete/
FILE READ sourse: /downloads/do-not-delete/myfile1.csv
PLAYER sourse: /storage/emulated/0/downloads/do-not-delete/myfile2.mp3
QUESTION:
How to correct str Path, FILE READ sourse and PLAYER sourse that app works properly on phones:
and and - if phone has a slot for the sdcard but the card is absent, files should be written and read in/from memory of the phone (as I understood: /mnt/asec)?