This is the flakiest thing I've seen.  It works and then doesn't work.

I'm almost at the point to tell management to scrap using this product.
I really like the C# and concept but I cannot spend this amount of time
one each start/stop reboot, works, doesn't work, errors, painfully slow,
impossible to breakpoint, on and on. 

Time for a beer
Tim
 

-----Original Message-----
From: monodroid-boun...@lists.ximian.com
[mailto:monodroid-boun...@lists.ximian.com] On Behalf Of Jonathan Pryor
Sent: Friday, August 05, 2011 4:43 PM
To: Discussions related to Mono for Android
Subject: Re: [mono-android] Files

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.ExternalStorageDirec
tory
_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid
_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to