PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV Mobile 2024
→
sound function does not work on mobile Android
sound function does not work on mobile Android
Started by Marc Rodriguez, May, 30 2023 10:09 AM - 1 reply
Connect yourself…
Marc Rodriguez
#1
Posted on May, 30 2023 - 10:09 AM
Hello,
I'm trying to use de sound function on an android program, but it does only work on the simulator. When I use the apk on the phone it does not work. (I'm using windev mobile 27). I don't know if i'm missing something.
thanks
Report
0
0
Lee SHRODER (RLS)
#2
Registered member
7 messages
Posted on July, 13 2023 - 5:14 PM
Hi Marc,
I am assuming you are using a WAV file to create the sound? Are you including the WAV file in the list of integrated files when generating the APK?
Also when including the file in the integrated files there is no need to use a path to the WAV file.
When developing and testing in the simulator, make sure the WAV file is held in the EXE folder, then when compiling ensure the WAV file is included in the integrated files and when calling the WAV file with the Sound command simply call the WAV file by its name with no path.
For example to play beep.wav use Sound("beep.wav")
Another thing to check is the sound volume, use the VolumeModify(100,volumeMusic) command to ensure the sound volume is at a desired level.
Hope this helps
Report
0
0
→ Go back to WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text