Is it possible to get last modified date from an assets file?

Posted by Nathan Fig on Stack Overflow See other posts from Stack Overflow or by Nathan Fig
Published on 2011-03-09T15:34:07Z Indexed on 2011/03/09 16:10 UTC
Read the original article Hit count: 262

Filed under:
|
|
|

Hi, all

Bizarre question: is it possible to get the last modified date of a file in the assets folder, or would that be pointless and impossible?

I ask because I'm copying a read-only database out of there into the data folder on application start up, but would rather only perform the copy if the existing file is older than the one stored in the assets folder (or if the file doesn't exist).

If that's not possible, anyone know of a better convention? I can post that in a separate question if needed. TIA!

© Stack Overflow or respective owner

Related posts about android

Related posts about sqlite