Maybe a good solution would be creating a lib project to take care of that data and import it in bouth projects.
Then, in this lib project you culd use a database, shared preferences or anything you want to hold the data. ;-) Best regards. Em 28/11/2012 00:03, "Android Test" <aandroidt...@gmail.com> escreveu: > Hi Bob, > > Because, I don't want it to be visible to users. At the same time do no > want other unauthorized applications to be able to access the info. > > > On Wed, Nov 28, 2012 at 12:04 AM, bob <b...@coolfone.comze.com> wrote: > >> Why not just write it to the SD card? >> >> >> >> On Tuesday, November 27, 2012 1:56:27 AM UTC-6, Android Test wrote: >>> >>> Hi All, >>> >>> I have 2 applications with different package names. E.g. App1 and App2. >>> >>> App1 needs to write some files to App2's internal memory so that it >>> could be uploaded to the backend. >>> >>> I have used the following in App1 to do so: >>> >>> filePath = getPackageManager().**getPackageInfo("app2.package.**name >>> <http://app2.package.name>", 0).applicationInfo.dataDir; >>> >>> I can get the correct path but could not write to it. I checked the >>> logcat, it is showing "Permission denied". >>> >>> Am I missing something? What's else needs to be done? >>> >>> Thanks in Advance >>> >> -- >> You received this message because you are subscribed to the Google >> Groups "Android Developers" group. >> To post to this group, send email to android-developers@googlegroups.com >> To unsubscribe from this group, send email to >> android-developers+unsubscr...@googlegroups.com >> For more options, visit this group at >> http://groups.google.com/group/android-developers?hl=en >> > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en