I have a problem. I use FileObserverone that moves new files from scanned directories to another, previously specified directory. In my thoughts, a toast message should be indicated, which says: "The xy file was moved" if the observer is watching the directory, also if the applications are only in the background. But I did not work. It always tells me what exists RuntimeExceptionand that it is impossible to do without a call Looper.prepare().
05-11 13: 21: 28.484: WARN / System.err (3397): java.lang.RuntimeException: cannot create a handler inside a thread that has no name Looper.prepare ()
I also tried using a handler, but I also did not get it to work.
Does anyone have an idea? Thanks in advance.
Regards, Tobi
source
share