[android-developers] Sharing files between apps

2011-01-16 Thread John Gaby
I have two applications which can access each others files. To get a path to a file in the other app, I am using the context.getDir(...) function to get a path to the file for the running app, and then changing the package name component of that path to the package name of the other app. This

Re: [android-developers] Sharing files between apps

2011-01-16 Thread TreKing
On Sun, Jan 16, 2011 at 4:27 PM, John Gaby jg...@gabysoft.com wrote: This seems to work, but I am wondering if this is a reliable way of doing this, or if there is another more appropriate way. Don't know how reliable that is (seems a little hacky) but the more appropriate way would probably

Re: [android-developers] Sharing files between apps

2011-01-16 Thread Dianne Hackborn
That can break, there is no guarantee the apps are installed the same place, for example if one is on the SD card and one isn't. If you want to find out about an application, use Context.createPackageContext() to create a Context configured for another application. (I assume you are doing tricks