Sharing a sound (mp3 file) in ai2 app inventor

1,818 views
Skip to first unread message
Assigned to halatmi...@gmail.com by me

junio...@gmail.com

unread,
May 25, 2014, 8:18:50 PM5/25/14
to mitappinv...@googlegroups.com
Helo everybody,

How can I share a sound music (mp3/wav file) with whatsapp or email, social programs?  

For example, I have a button that when clicked plays a mp3 sound. I want to share this mp3 sound with other apps like whatsapp, skype, gmail....  

Can you help me please ???

I attached an example that I did, but it´s not working... What´s wrong? 


Thanks,
Walfrido 
blocks-sharing-ai2.jpg

Hal Abelson

unread,
May 25, 2014, 10:03:48 PM5/25/14
to mitappinv...@googlegroups.com
Your blocks look OK.

When you execute share, the phone should present you with a choice of programs to use for sharing.   The list will depend on
what's on your phone, but Gmail should definitely be one of them.

What goes wrong?


Taifun

unread,
May 26, 2014, 9:27:05 AM5/26/14
to mitappinv...@googlegroups.com
probably this helps?
Taifun

Trying to push the limits of App Inventor! Snippets and Tutorials from Pura Vida Apps by Taifun.         

junio...@gmail.com

unread,
May 27, 2014, 9:22:30 AM5/27/14
to mitappinv...@googlegroups.com

When I handle the button appears the message: error 2001: The File file://done.wav could not be found on your device.

Do I have to specify some path??

Taifun

unread,
May 27, 2014, 10:12:39 AM5/27/14
to mitappinv...@googlegroups.com
Do I have to specify some path??
in case your file is not in the root directory: yes
you might want to provide a screenshot of your relevant blocks

junio...@gmail.com

unread,
May 27, 2014, 3:04:00 PM5/27/14
to mitappinv...@googlegroups.com
But, which path is the root directory?

I just uploaded the wav file when I add the sound player.

Attached the properties and the blocks.

wait for repply.
thanks
properties-appinventor.jpg
blocks-appinventor.jpg

Taifun

unread,
May 27, 2014, 3:46:03 PM5/27/14
to mitappinv...@googlegroups.com
as far as I know, you can't share a file uploaded as asset into App Inventor
the file must be available on the device, for example if you store the file in the root directory, it would be the following path: file:///mnt/sdcard/done.wav
note: there are 3 slashes
Taifun

NoobAI2

unread,
May 28, 2014, 4:10:28 PM5/28/14
to mitappinv...@googlegroups.com
Hello, junio.. I would like to do the samw, were you able to fix ????

I have a soundboard (already in playstore look for Fala Galvao) and I would like to create an option to share the sounds that is possible to play there.



Tks,
Adair
Reply all
Reply to author
Forward
0 new messages