MIT App Storage Capacity

Thank you for your help! However, I have a few concerns-1, I tried looking at it, but I have next to no clue what the source is trying to tell me to do, even with the instructional video that is so blurry I can't manage to see anything. 2, I think this method is for having all of the files with the app when it is installed at the start, But I want to be able to continuously add more files over time, if possible. Same with how something like spotify would work-you find a new song, add it to your playlists, and then you can recall it at any point in time.

Both videos were uploaded as full HD videos. The first one is on YT, there you can set the quality.

Yes

Download the files and store them in ASD - application specific directory

Taifun
PS:

If you are asking for help, I recommend you to make it as easy for others to be able to help you ...
You probably will get more feedback then...

which means in your case post a screenshot of your relevant blocks...

To download the aia file, upload it to App Inventor, open it, do some bug hunting for you, etc... this takes time, and most people will not do that...
Thank you.


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.

So I went around, looking at the ASD, and found Anke's ASD downloader, so I imported that, and made a test file to mess around with it and see what works from what I saw on the forums. I got as far as I could, But I managed to get stuck. I get the error message of that it can't load the file that was imported. I know the file is downloaded, because it gives me a notification, but the song player won't run the file with the path:

your path to the ASD seems to be incorrect...
try this

Taifun

Do NOT hard-code the ASD.

grafik

@Taifun:
So I changed the path to this:


But it still had the loading error. (It might be possible I misread how to make the path, because I couldn't tell which parts were tailored for that project or not.)
@Anke: I don't understand what you mean? What is hard-coding it, how am I doing it, and how do I not do it?

This

ASD/global Song_Title.mp3


grafik /fileName.mp3

Changed the Song Player Source:


However, it still gives the the load error. Could there be something else that is wrong?

A slash is missing:

What abiut using Do it to check the path and find those little errors yourself?

Use the companion app and Do it to debug your blocks, see also tip 4 here App Inventor: How to Learn | Pura Vida Apps
see also Live Development, Testing, and Debugging Tools

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.

Added the slash in, and the current error message is:
Error 702: Unable to prepare /storage/emulated/0/Android/data/appinventor.ai_[email].X_Notes_Test/files/[Song Title].mp3

Hmm, try to use a full path:
file:///storage/emulate/...
file://ASD/fileName.mp3

Same error again, but with the file:// at the start. Frustrating.

Show your relevant blocks (and post the aia).

use Do it to debug your blocks and show us a Do it result of the complete filename

a correct filename looks like this

file:///storage/emulated/0/Android/data/<packageName>/files/something.mp3

also it would be a good idea to avoid spaces in the filename,
alternatively replace spaces by %20 like this

unknown

Taifun

Take a screenshot of the error message and post it (so we can see where the problem might be).

@Taifun
@Anke

Do It before inputs (Song Title/URL):
file:///storage/emulated/0/Android/data/edu.mit.appinventor.aicompanion3/files/.mp3

Do It after inputs(Song Title/URL):
file:///storage/emulated/0/Android/data/edu.mit.appinventor.aicompanion3/files/oUcHiE.mp3

Error Message Screenshot:
Screenshot_20240717_132508
(It seems the email part was added when you install the app, which I was trying before. It is just the name of my email without the @mail.com string)

Project so far:

AIA File:
X_Notes_Test.aia (10.5 KB)

Thank you for all of the help you have been giving me, it is being invaluable at the moment, because I have next to no clue how most of this filing stuff works! Thank you so much for the time you are putting in to help me!