On Aug 5, 2011, at 4:19 PM, Tim Kelly wrote: > Secondly, I would like to have TWO applications share (read/write) the same > file? In production?
There are two ways this can work: 1. Ensure that one of your apps is always used first, and have it call Context.GetDir(string, FileCreationMode)[0] with FileCreationMode.WorldReadable|FileCreationMode.WorldWritable. The other apps can then use PackageManager to obtain the files directory of the first app (ApplicationInfo.DataDir), and then read/write from this directory. 2. Use Android.OS.Environment.ExternalStorageDirectory [1]. Note that with both of these approaches, every app on the phone will be able to read/write to the directory. Solution (2) has the added problem that ExternalStorageDirectory is not always accessible (e.g. when USB storage is enabled, ExternalStorageDirectory is inaccessible). - Jon [0] http://docs.mono-android.net/Android.Content.Context.GetDir [1] http://docs.mono-android.net/Android.OS.Environment.ExternalStorageDirectory _______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid