On Mon, Nov 8, 2010 at 5:20 PM, kypriakos <[email protected]> wrote: > Thanks for Dianne and Mark for the SharedUserID information and > feedback. > > I have two separate projects (I own both of them) that at runtime > write > files back into persistent memory ( in their private app space). Each > of them will need to access these files. > > So are these the options I have? > (1) Should I use a SharedUserID in the two manifest files, signed the > apps with the same key and allow them to access each other files? > (2) Should I write these files in the /sdcard where they can both > access them (I know this data is in danger of being lost but for the > purposes of a prototype that is not an issue)
(3) Use a ContentProvider (4) Use a remote Service I'd vote #3 or #4 for production. If you want to skate by with #2 for a prototype, that's reasonable. Based on your final paragraph, there is also: (5) Just make it all one app which is the best solution in many ways. > Is there a way to launch both apks in the same process from a single > icon? No. They won't be the same process, regardless. They run as the same Linux user, which is what enables the file access. Besides, what does it mean to "launch both apks"? APKs are not launched, components are. > Wouldn't it be better to try and merge the code - I know this would be > a last resort as it will be a lot of rework. Considering the extra complexity of maintaining two projects -- and the craptacular user experience from having these sorts of dependencies -- I am hoping that you have better reasons for keeping them separate than merely avoiding rework. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in Atlanta: http://bignerdranch.com/classes/android -- 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

