If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

What I asked though is, "Does http://www.pslt.biz/mobileApp/dd/index.html work on your smartphone?" That's the first hurdle. If it doesn't work on the smartphone before Phonegap conversion to an app, it's not likely to work after.

So try that out and see.

Now as to this error. On the live page, if I do a "View Source" I see (at the very end):

Did you add that? If not, the server is adding it. In either case, that might be where the error "can't find the index.html file" is coming from. The only other place I think it could be is our trigger links, which use # as their href. These are supposed to be default prevented, so should not fire. But if something else is going wrong, they would fire and their full href would resolve to:

http://www.pslt.biz/mobileApp/dd/index.html#

When do you get the error? Is it when the app loads, or when you tap on a sound? If it's when the app loads, it's probably because of that tracking script. If it's when you tap a sound, it could still be the tracking script, but it might be that Phonegap isn't bringing the required scripts (jQuery, the UI, and/or jPlayer) along when converting or is but the smartphone doesn't recognize a tap as a click.

So again I must stress that if http://www.pslt.biz/mobileApp/dd/index.html doesn't work on the smartphone, we would need to fix that first. Make sure to test whether it does or does not. Though it could happen that the live page works on smartphone but needs the jQuery mobile script and some tweaking to work after Phonegap conversion. But if the live page doesn't work in smartphone, we need to fix that first.

Some fine points unrelated to its working or not:

I was playing around with the layout a little more and discovered that using a <br> between the sounds makes a little more space than really looks good. You could get rid of the <br> and use a spacer div instead:

Hi John,
I tested the website using my droid phone and there was no sound from it - which I think you suspected all along. I did some googling and found this https://groups.google.com/forum/#!to...er/46K2eSFnnac but quite honestly I didn't really understand what they were saying so I'm not sure how relevant it is but there seem to be some jplayer/droid issues. My droid phone is running v4.1.2 of droid.

The additional code at the end of the page was added by my web hosting company I believe. I have asked them to remove it, it's done at run-time I believe. From googling around it appears they do it for all web sites automatically unless you specifically ask them not to - I really don't like that approach and in any case I use Google Analytics so don't need it. The application error saying it couldn't find index.html has gone away, I'm not sure what the problem was. It now looks the same as the website, but when I tap the screen the background changes to yellow but no sound.

I've removed the commented code testing for IE8 and I'll make the .spacer change in the next few minutes.

Just an additional comment, I downloaded an app that changes the background color and plays a brief sound clip so I know it can be done on the droid, but I'm running out of ideas on what to try next. I really appreciate your help with this and your explanations of "why", they help me a lot.

OK, well looking at that page you linked to, I don't believe we are doing any of the things it says are bad, I will double check though. We could try using the jQuery mobile plugin. I already setup a demo:

that worked

Originally Posted by jscheuer1

OK, well looking at that page you linked to, I don't believe we are doing any of the things it says are bad, I will double check though. We could try using the jQuery mobile plugin. I already setup a demo:

Sorry I've been absent for a few days, life got in the way - mother-in-law broke her hip......

I tried demo3 on my PC and using the browser on my droid phone and it worked both times. So, I took your demo3, created a version on my PC and uploaded to a website at www.pslt.biz/mobileApp/dd3/index.html . This worked when I used my PC, using both IE and Chrome. When I used the browser on my droid phone the sound didn't play, but the text/ graphics showed correctly and responded to a tap - although the yellow background stayed yellow after a tap until I tapped again. The only changes I made to demo3 were to the name of the sound file and the spacing for my speaker image. I created my version twice just in case I did something wrong and had the same result both times. I just don't understand why your demo3 worked on my droid browser and mine didn't......

I'm not sure how relevant this is as it relates to the app rather than just using the droid browser but before I started corresponding with you I had gone back and forth with phonegap tech support and was able to get the sound working on my app, phonegap said I should use their api - phonegap.js which I did. Unfortunately I can't test that on my PC as the link and the js file are added by phonegap when they create the app - there's a different js file depending on which phone is the target environment apparently.

You have no test.ogg file, the tracking code is there again and appears to interfere in some browsers by causing an error, you copied my favicon link, you don't need or want that, it could be causing problems. In Opera I was informed that a security certificate for the page had expired and was asked if I wanted to see the page anyway.

For the .ogg file, either make one as I mentioned before, or comment (red two places) that part out:

It's at the end, but I assume that, as before, it's being added automatically by the server.

Taking care of all of that may fix the security certificate problem, or it may not. If it doesn't, there's something wrong with your host's security certificate for your domain. Most likely that's coming from the tracking code, as it's the only secure https content on the page. But it might be something else.

Since you say it worked on the local computer, I'd say the tracking code is the biggest potential culprit.

Hi John,
Thanks for your comments. I was able to stop the tracking code being added. I made the other changes you suggested, it worked on my PC and no sound on my droid phone. So, I created an ogg version of the test.mp3 file using Free Studio Manager (thanks for the referral to this very handy utility) uploaded it and added back the JS dealing with ogg files. Again it worked on my PC but still no sound on my droid phone. This really is very strange, is there anything I can do to debug on my smart phone? Here's the web page http://www.pslt.biz/mobileApp/dd3/

Thanks so much for your help with this, I'd be tearing out what little hair I have left trying to figure this out on my own!

If so, I can see no reason for the problem with your demo, except perhaps that droid has cached it. But if it's an entirely new page and hasn't changed, that shouldn't be a problem. But it did change from when you added the ogg file. So that might be it. If so, make up an entirely new page with everything just like it is on your latest demo and try that. Clear the droid cache and keep your fingers crossed.

Oh, and other things different are:

The host

The css

The image

The sound file and the fact that you're using the same sound file for both sounds

I don't think that any of these could matter. One or more might. When I have more time, I will try hosting it with your page and sound(s) on my site to see if it's the cache or perhaps the host that's the problem. Droid may have cached at some point the ogg file as a 404 Not Found, or the tracking code might be cached on droid. It's hard to say. Can you do a view source in droid? If so, see what it looks like - are all of the latest changes there? Is the tracking code absent?

I tested my site with a different droid phone with the same results so I don't think it's a cache issue. I don't think you can do a view source on an android - at least I couldn't find it, but I do know the tracking code has been removed. I agree that none of the other changes seem likely to cause this problem, however I'll create a second sound file and try that.

I can send you a zipped version of the site so you can try hosting, although I didn't see how to attach a file to a message, should I email it to you? Perhaps you could also email me your site and I can try it on my host. If it works unchanged I'll use that as a starting point and try adding my images, text and sound files one at a time and see if any of them break it. My email is tonybab AT alejandra.net .

One more thing I'll try is to go back to the original app that plays a sound when running as an app on the droid(ie after phonegap conversion). I'll try merging your code that changes background color with this app that plays sound - assuming I can figure it out.