Actually to double check as I am not too familiar with content providers in Android (yet). Can they aid in allowing multiple processes (apps) accessing the same file in storage?
On Nov 2, 11:41 pm, Dianne Hackborn <[email protected]> wrote: > On Tue, Nov 2, 2010 at 8:28 PM, kypriakos <[email protected]> wrote: > > I agree with you Dianne, such a method would certainly cause more > > trouble > > if not handled properly but I tried and I cannot avoid it. I do need > > separate > > imported code to share the same space. I will exercise extreme caution > > and if I see that this is causing more harm than good I will bail out > > and seek > > alternative solutions - would having the processes from each apk write/ > > read from > > the public SDcard space may be a better option? Not sure but at least > > for > > testing purposes I will try it. > > If you just need to share data, a content provider can work very well. You > can set permissions on the content provider to a signature-only permission > you define so other apps can't access the data. > > I can't help much more without actually knowing what you are trying to do. > > > The requirement also specifies that the two apks should be signed with > > the > > same key. But unless these are apks to be released I don't think this > > is necessary > > right - particularly if they are ran on emulators. > > To use sharedUserId the two apps *must* be signed with the same cert, and if > they aren't you will break. You are right, you generally rely on using > release signed .apks to ensure they are signed with the same cert... you > could play some games to ensure that development builds are signed with the > same dev cert (by having all developers use it), but can't mix release and > dev builds. > > -- > Dianne Hackborn > Android framework engineer > [email protected] > > Note: please don't send private questions to me, as I don't have time to > provide private support, and so won't reply to such e-mails. All such > questions should be posted on public forums, where I and others can see and > answer them. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

