I want to write some bytes to a shared memory. This is done in my application1. From my another application: application2 I want to access that shared memory to read the written bytes. For this purpose I tried using android’s MemoryFile class. I am stuck as how to refer to the same shard memory between two different application. I am also now confused if memoryFile is used for the same purpose or not.
http://developer.android.com/reference/android/os/MemoryFile.html this link I found regarding the topic.
Thanks in advance.
Krishna
I want to write some bytes to a shared memory. This is done in
Share
If you want some cross-process use with
MemoryFileyou can use the following fugly method:What you should be looking at is the
#getParcelFileDescriptor(MemoryFile)method which you can return from an implementation ofContentProvider#openFile(Uri, String).