2017년 3월 31일 금요일

How can I share an mp3 file


i have a Problem with sharing this scream.mp3 file.

When i hit the button, the player plays the sound...all right.
When i long click the button, there comes the Error 2001 on my phone...file://scream could not be found on device

I dont know what the problem is

Please help me to fix the problem.


--
you can't share assets (files uploaded into App Inventor), the files to share must be available on the sd card of the device

-- 
thanks for the quick answer Taifun...so..

I tested it with a sdcard device with all combinations in defining the file. 2 slashes, 3 slashes, no slash, etc...

After Installing the app, there are no Data on the device to work with.

In Simulation with app inventor it works fine, because the files are in the assets ordner, so i can write the path f:///sdcard/appinventor/assets/scream.mp3 to global variable...than it works perfect. I can play and sharing works fine.
But without app inventor, after installing myapp.apk for example, there are no files on the device...where are the files??
The file must be there...the player plays it, but i cant share it.
Is there a problem with Installation?
My app is bigger than 5mb...9,09mb....can this be the problem?

--
where are the files??
The file must be there...the player plays it, but i cant share it.
The files are inside your app, as assets. As Taifun says you can't share assets, the files need to be on your sd card. One option is you could download the files to your sd card from the internet using the web component.

--
probably this snippet can help 
Ok, if i understand correct...its not enough to upload the audio-file in the app...

I need external storage to share it, right? Can i use the tinywebdb for that?

--
TinyWebDB is a web database to store tag/value pairs
this is something completely different...
but you could use this method https://puravidaapps.com/filebyfile.php

-- 
Thanks Taifun...

with google.drive and parts of your filebyfile-Link it works fine
Thank you and Phantomfoot for the support!

--

댓글 없음:

댓글 쓰기