Thanx Craig,

And yes - you're right. I did eventually find that - for push, the sounds 
*must* be in the app bundle.

Dino

From: [email protected] [mailto:[email protected]] On Behalf Of Craig Dunn
Sent: Tuesday, February 21, 2012 10:56 PM
To: Dean Cleaver
Cc: [email protected]
Subject: Re: [MonoTouch] App local file access

Dean,

hopefully this helps a little:
http://docs.xamarin.com/ios/tutorials/Working_with_the_File_System#Application_Directories

you are correct, anything embedded in your app is in the 'app bundle', which is 
readonly on the device. there are a few other folders available for you to 
store data - in your case i think /Library/ makes more sense than /Documents/

finally (and don't quote me on this), i *think* i read somewhere that 
notification sounds _do_ need to be in the app-bundle ~ the only way to ensure 
they are definitely available. i could be wrong (frequently am)

hth
cd




On Wed, Feb 22, 2012 at 3:19 PM, Dean Cleaver 
<[email protected]<mailto:[email protected]>> 
wrote:
Hi,

Because of the 20MB limit on app size for download over mobile broadband, we're 
trying to reduce the size of our app. One easy win is to remove the 5MB of 
sound files from the app, and download them on first run of the app.

Currently they're in a "Sounds" folder, but I presume that location will be 
read only on the device? From what I have managed to find online, the 
read/write area is "Documents" so I should be able to save them there, and play 
them from there I presume.

Does that mean that if I currently use Apple push to play the sound file 
"Sounds/Electrical.caf" can I now change that to "Documents/Electrical.caf" and 
that will work? Or have I missed something?

I've tried googling the file structure of an app, but haven't found the right 
search terms yet.

Dino

_______________________________________________
MonoTouch mailing list
[email protected]<mailto:[email protected]>
http://lists.ximian.com/mailman/listinfo/monotouch

_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to