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 7586773
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T19:30:33+00:00 2026-05-30T19:30:33+00:00

My app downloads some assets from my server using an AsyncTask and I put

  • 0

My app downloads some assets from my server using an AsyncTask and I put them in a folder on the SD Card. Then, I use these assets in my buttons backgrounds. Everything works, but I’m wondering the best practice to use when I change my assets on the server side. In fact, at the moment, I’m not able to know if the server asset is a new one compared to the one stored locally. However, I was thinking about two possible solutions:
1) The app checks the server for new files, e.g. twice a day. If new files are there, then download them and upgrade the storage locally. In this case: how can I get the time difference between the local and the server file? In other words, how can I know that the server asset is a new one compared to the local one?
2) The server send a notification to the client when a new file is available. How can I manage that?

What is the best choice between the two above?

  • 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-05-30T19:30:34+00:00Added an answer on May 30, 2026 at 7:30 pm

    You can have an assets version number for your assets. Every time your app starts, you can request the latest assets version number. if its larger than the version number you have stored, you know that the images have changed and you can download the latest images. Every time images changes in the server, make sure you increase the version number.

    You should also store the version number when you retrieve assets from the server.

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

Sidebar

Related Questions

I have an app that downloads some documents from a server and saves them
I have a small app that downloads some files from a remote (HTTP) server
My app downloads some multi-media files from a server when it's installed. I do
My app downloads a small image file from a remote server and I am
My app downloads content from a server and recently I've noticed the GUI has
My iphone app downloads user specific data from our web server. How can I
I'm using an API in my Android app that downloads images from the web
My app downloads an mp3 from our server and plays it back to the
After client downloads a file from our server with our app, the app does
I have a simple app that downloads some data from a webservice and displays

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.