On Mon, Oct 8, 2012 at 8:01 AM, Archana <ramalingam.arch...@gmail.com> wrote: > Hi, is there a way to get the timestamp of a file in the internal memory of > phone?
java.io.File has methods for this (e.g., lastModified()). > Or how do I compare latest of 2 files in 2 instances of the emulator? Not by timestamp, as they may not be using the same clock. You will need to compare the file lengths and, if equal, compare the file contents. Note that this has nothing in particular to do with Android -- this is a generic Java programming issue. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en