sub-folders and resurces

Hi All,

I use some sounds and images and I put them in subfolders of the main app. I reference them ok and all of them work ok in Corona Simulator.
Then…I build for Android and put on my phone and tablet.
Only sounds from main folder are playing ok , other ( from \Sound ) - not.
Is there some special requirements / I need to put some special code in config or build files to include these resources in apk?

Thank you
Radu [import]uid: 157691 topic_id: 35055 reply_id: 335055[/import]

Hi Radu,
Can you show a sample directory path (to your sounds, exactly as it looks) and also how you’re calling them in the Lua code?

Thanks,
Brent [import]uid: 200026 topic_id: 35055 reply_id: 139411[/import]

Hi Brent,

I found the problem. I used loadSound("\SoundsFolderName\Sound.mp3") - it worked on simulator ok.
I changed the syntax with loadSound(“SoundsFolderName\Sound.mp3”) and now it works on phone/tablet , too.
Maybe the functionality on simulator could be synchronize with functonality on devices in future

Thanks,
Radu [import]uid: 157691 topic_id: 35055 reply_id: 139429[/import]

Hi Radu,
Can you show a sample directory path (to your sounds, exactly as it looks) and also how you’re calling them in the Lua code?

Thanks,
Brent [import]uid: 200026 topic_id: 35055 reply_id: 139411[/import]

Hi Brent,

I found the problem. I used loadSound("\SoundsFolderName\Sound.mp3") - it worked on simulator ok.
I changed the syntax with loadSound(“SoundsFolderName\Sound.mp3”) and now it works on phone/tablet , too.
Maybe the functionality on simulator could be synchronize with functonality on devices in future

Thanks,
Radu [import]uid: 157691 topic_id: 35055 reply_id: 139429[/import]