This has been driving me nuts for a couple of weeks now - off and on.....it should be very straightforward but I can't get it to work. This is my first attempt at writing an app so I must be missing something blindingly obvious.
In a related question, what are people using to convert the webapp to a smartphone app? Is it better to use phonegap build or install phonegap on my PC. I've tried both and can't get either to work so I'm using appsgeyser.com which is very straightforward and at least builds a droid app I can see and play with. The problem there was that I can play the sound on my PC (although there is a delay that is too long but probably caused by internet access that I hope will go away when running a smartphone app as everything will be local) but the smartphone doesn't make a sound at all, the button changes color but no sound comes out. I will be so happy when I hear that first sound come from my phone...sigh.
Thanks for any direction you can provide, this is all new to me so I'm still floundering around even to understand what the problem really is..
Part 1 --
If it's a web app, you can use HTML5 <audio> and preload them.
Possibly related article:
Part 2 --
Using PhoneGap Build in DW CS6
Adobe iPhone, Android SDK Service
thanks that was helpful. I tried creating a test page just to get a sound out of my Droid smartphone and it works on the web but still doesn't work when I convert to an app on my phone. The webapp can be seen here www.pslt.biz/mobileApp/LE3/index.html and the button to play the sound is on "Page Two".
Here's the html as shown by Dreamweaver
<audio id="demo" src="sounds/testaycaramba.mp3">
<p> Your browser does not support etc</p>
<button onclick="document.getElementById('demo').play()">Play the Audio</button>
I used www.appsgeyser.com to create the apk and installed it on my phone.
You can download the Android app here
Short url: http://www.appsgeyser.com/465065
Thanks for any direction you can give me.
It looks like the problem is with Appsgeyser that i used to convert the web app to a smartphone app. I'll continue working with them to try and resolve but in the meantime will start looking at phone gap build.
Update: The appsgeyser folks escalated my problem to their tech support who were supposed to contact me direct. I sent them a reminder after a few days and heard nothing from them. So, I don't recommend appsgeyser.com to create a smartphone droid app.
So I used Phone Gap build - still can't upload direct to worked around it by creating a zip file and uploading that. The sound plays on my web app but still does not play on my smartphone....sigh.
Anyone have suggestions? For example does PG Build support the <Audio> tag?