Filesystem monitoring is only provided in Java in the NIO2 stuff
coming with Java 7. Android supports a subset of Java 6 so perhaps you
can port this over yourself by looking at their source. As far as I
know though, even the NIO2 will often need to use constant polling
which would absolutely kill the battery life of an Android device I
think.

So the real question is whether it's possible to hook into some native
Android services and be notified regarding writes to /sdcard but I
fear, if even possible, this require a rooted phone.

/Casper

On 13 Aug., 21:05, "Mapara,Harshit Nitinkumar" <[email protected]>
wrote:
> Hi All,
>
> I am creating an app and the requirement is - I have to listen to the
> SD card for new data comes in.
>
> Whenever a new file is downloaded into SD card , I want to be notified.
> (or say , I want to listen for changes)
>
> I searched, but can't get any useful help.
>
> Please help me in this issue.
>
> Any code sample, link will be nice to have.
>
> Thanks
> Harshit
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to