File observer trigger problem

Post your questions and help other users.

Moderator: Martin

Post Reply
wfrcrd
Posts: 116
Joined: 27 May 2015 08:57

File observer trigger problem

Post by wfrcrd » 21 Aug 2016 08:47

When setted on " writeateble file closed "
seems work good if the file has been writted from an app,
but when I transfer a file to the observed directory using bluetooth or via usb cable
the trigger don't switch and the flow log is empty.

Any suggestion?
Thank you

User avatar
MURTUMA
Posts: 697
Joined: 05 Mar 2013 22:43

Re: File observer trigger problem

Post by MURTUMA » 21 Aug 2016 09:31

Read the help section and setting descriptions.

"Writable file closed: Someone had a file or directory open for writing, and closed it." This is clearly not the case when moving(transferring) files. Please check what "File moved to" option does.

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: File observer trigger problem

Post by Martin » 21 Aug 2016 13:41

Please also note that the file observer does not work for all directories/apps equally well on Android 6. Google is aware about several internal bugs of the API used but seems not be interested to fix the bugs :cry:

wfrcrd
Posts: 116
Joined: 27 May 2015 08:57

Re: File observer trigger problem

Post by wfrcrd » 22 Aug 2016 20:24

I choosed the trigger "Writable file closed" because I need to move the files from one directory to another ,
sometimes the file are big files so I suppose that cannot move a file while is writing ( it takes time to be completely written to the source directory and when the writing process has ended the file it's ready to be moved).

I suppose the right trigger for this puprouse is "Subfile created" even for big files.
But I need to switch the trigger where there is e new file in a directory ( I don't care if it has beene moved from another directory or as been created from an app)


PS Fortunately I don't have Android 6 :)

Thank you !

wfrcrd
Posts: 116
Joined: 27 May 2015 08:57

Re: File observer trigger problem

Post by wfrcrd » 23 Aug 2016 08:05

I've tried using the "Subfile created" trigger.
It seems working but the transfer process from the PC to the source directory on the smartphone it's really slower .

Any suggest to keep the transfer process to the normal speed?


Thank you

Post Reply