On Wed, Oct 20, 2010 at 9:14 AM, chazz <[email protected]> wrote: > Hi, I am new in android development. i was wondering if i could share > some data between two applications in android. One way is to place the > text file on SdCard but i dont want to do this... second way is to > place in data folder, and i dont know how to.... 3rd way is to place > the data in shared memory so both applications can see it... also i > dont want the user to see or delete this file, only my two > applications can change this file or data..... > Please help me... i've been wondering on this for 2 days....
First, users who root their devices can "see or delete" any files. Second, there is no shared memory construct available in the Android SDK that I can think of. If these two apps are both written by you, you can use android:sharedUserId in the manifest and sign them with the same signing key. Then they will have read/write access to each other's app-local file store (the /data/data/your.package.name/files spot). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- 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

