Android is built on top of Linux, so it inherits the semantics of the Linux file system. Unless you explicitly lock the file, several applications and streams may open it for read / write access. If you really don't need synchronization between processes, I would suggest using the usual Java synchronization primitives for arbitrarily accessing a file.
hackbod
source share