Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers AppGameKit Corner / load a specific file (.obj, .txt, .zip) on disk on android (/sdcard)

Author
Message
Blendman
10
Years of Service
User Offline
Joined: 17th Feb 2014
Location: Arkeos
Posted: 18th Nov 2023 09:33 Edited at: 18th Nov 2023 09:46
Hi

when I try to read some files on android, or get its name with getrawfolderfilename(), it's not possible, the file doesn't appear and I can't read them (with opentoread).
On android, I can open external images (png, jpg) or sound (wav, mp3) from the internal disk (from "/sdcard/Documents/"), but not : .txt, .obj, .dae or other kind of file.

Do you know how I can do that ?



thanks
AGK2 tier1 - http://www.dracaena-studio.com
Aidan
User Banned
Posted: 18th Nov 2023 14:10
Hello

I see that you have hard coded the path to a text file to test

f = opentoread("raw:/sdcard/Documents/myfolder/test.txt")

Is this where it's failing?,

Android is particular to case sensitive folders and filenames

Just something to start diagnosing the issue

Login to post a reply

Server time is: 2024-11-07 04:35:27
Your offset time is: 2024-11-07 04:35:27