Android FileObserver - create new file

210 Views Asked by At

I have to create a file mechanism which creates a new file, check at real time if the file has reached to some length and then open a new file in order to write the extra data. But then, if the new file has also reached the same limit, open a new file.

For this, I was thinking to use file observer, but it requires to change the watched file name, and it seems that each file will have a new instance of fileObserver.

is the an easiest way to do it?

0

There are 0 best solutions below