alternatively, the regular java File class has a 
lastModified() method. you could run a Service 
which has a Timer of some sort and then messages 
your activity when the mod time on the 
appropriate directory changes.



>You might want to look at the following java libraries and see whether
>you can port one of them to Android.
>
>http://www.rgagnon.com/javadetails/java-0617.html
>
>Another way might be to execute system commands like stat (for which
>you have to be root which makes it more complicated to use it from SDK
>level)
>
>--
>Roman Baumgaertner
>Sr. SW Engineer-OSDC
>·T· · ·Mobile· stick together
>The views, opinions and statements in this email are those of the
>author solely in their individual capacity, and do not necessarily
>represent those of T-Mobile USA, Inc.
>
>
>On Aug 13, 12:05 pm, "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
>

-- 
jason.software.particle

--~--~---------~--~----~------------~-------~--~----~
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