Hi Developers,
 
This is about FileObserver Bug. I am using FileObserver in my application 
to keep track of newly created, deleted and modified files (images, video, 
MS Word document and PDF files). I am successful in handling these events 
in Lollipop but partially successful in Marshmallow.
 
Detailed issue in Marshmallow.

   1. I have tested this in Nexus 6 Marshmallow and it works fine.
   2. But, when it comes to* LG Marshmallow and Samsung s7 (Marshmallow) *I 
   am not able to capture the files.
   3. When I tested in these mobiles, below events are not triggered, the 
   events number are refereed from the this link. 
   https://developer.android.com/reference/android/os/FileObserver.html


   - *Create - 256 *
   - *Delete - 512*
   - *Modified - 2 *

These event numbers are *not triggered.* Is this a bug in Marshmallow 
itself ? Why its not working in Samsung s7 and LG marshmallow devices? Is 
Samsung and LG devices with Marshmallow restricting us from capturing using 
file observer?
 
Please share your suggestions and help me to resolve these issues
 
Thank You
Shyamkumar M

On Thursday, February 5, 2009 at 4:43:25 PM UTC+5:30, and.pradeep wrote:
>
> thanks solved it. instead of creating in separate threads i did it in 
> single thread by creating an instance of fileobserver for each 
> directory and calling startwatching(); in a loop. 
>
> On Feb 4, 11:03 pm, Dianne Hackborn <hack...@android.com> wrote: 
> > You don't need to create any threads to use FileObserver -- it is 
> > callback-based. 
> > 
> > On Tue, Feb 3, 2009 at 11:27 PM, pradeep <pradeep...@gmail.com> wrote: 
> > 
> > > i need to observe a sdcard i.e all the folders inside. i am creating 
> > > fileobservers for each folder in saparate threads, but i don't think 
> > > it is efficient. is there any other method for do so? 
> > 
> > -- 
> > Dianne Hackborn 
> > Android framework engineer 
> > hack...@android.com 
> > 
> > Note: please don't send private questions to me, as I don't have time to 
> > provide private support.  All such questions should be posted on public 
> > forums, where I and others can see and answer them. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/cc663ec4-b033-47f9-892c-a743fc72022b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to