Thank you! On Monday, October 8, 2012 3:10:24 PM UTC+3, Mark Murphy (a Commons Guy) wrote: > > On Mon, Oct 8, 2012 at 8:01 AM, Archana <[email protected]<javascript:>> > 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 [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

