shared file audio for whatsapp

fifiddu70

Well-Known Member
Licensed User
Longtime User
I have a program to play mp3 audio files, I need to share files with WhatsApp
I managed to save the mp3 files on the phone but WhatsApp does not show a hint?
 

netkomm

Active Member
Licensed User
Longtime User
You can use the library MESShareLibrary

B4X:
Dim share As MESShareLibrary
File.Copy(File.DirAssets, "vivaldi.mp3", File.DirRootExternal, "vivaldi.mp3")
share.sharebinary ("file://" & File.DirRootExternal & "/vivaldi.mp3", "audio/mp3", "Send MP3", "Do you like it?")

it will open a window including all the apps compatible with the file type and the use will need to post then to whatsapp.
 
Upvote 0

ibra939

Active Member
Licensed User
Longtime User
thanks ;) so much
 
Upvote 0

wherrelz

Member
Licensed User
Was breaking my head with ahaShare for 3 hours - then I found this!! Thank you god for the person who made this lib <3
 
Upvote 0
Top