Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8089261
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T19:20:51+00:00 2026-06-05T19:20:51+00:00

Is there a way to see if assets file changed between application reinstall in

  • 0

Is there a way to see if assets file changed between application reinstall in Android?
Something like md5 or timestamp on whole assets folder (afaik assets are just a zipped file, so maybe it’s possible to check just this file for changes?)?

We have an application in which we store configuration xml’s in assets folder, then parse them to binary form. As the application is still in development xmls change sometimes. I’d like to be able to automatically determine that assets changed, so I can ‘reload’ xmls to binary form. It is always the case, that we have the same amount of xml files which change their content a little so seeing if file list changed is not enough.

I know it would be possible to keep a version number, but if possible, I would like to avoid it because it is error prone and would require some discipline from every programmer.

EDIT

Found this answer now: Android assets timestamp

As this shows assets timestamp may not be a good idea because it does not reflect asset files timestamp, but rather build time.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T19:20:52+00:00Added an answer on June 5, 2026 at 7:20 pm

    Take the hash of each file and store along with filename in shared preferences or a file. Also store the current versionCode. On startup, compare the versionCode of the app with the one on disk, and if it has changed, calculate the hashes of your assets and compare with ones on disk.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a way to see what's been saved to NSUserDefaults directly? I'd like
Is there any way to see what a control will look like in the
Is there any way to see how many queries are executed in like every
This is regarding MS Enterprise Application Block cache. Is there a way to see
Is there a simple way to see assigned shortcuts with given prefix? Something similar
Is there any way to see AJAX requests like in FireBug for Firefox? I
Is there a way to see what dll files my executable file will be
Is there a way to see, where are opened folds in current File? I
Is there a way to see how much ram your app is using during
Is there a way to see how many items in a dictionary share the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.