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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T17:04:45+00:00 2026-06-01T17:04:45+00:00

For my program I would like to check for a new update when it

  • 0

For my program I would like to check for a new update when it is run. I don’t want it to auto update. It doesn’t even need to provide a link to a new version.

I was thinking that how I should do it is, I should have a webpage like:

http://www.website.com/checkversion

The page would contain just 1 thing. It would contain a version number. The version number on the site would be the latest version that is released. If the version number is not equal to the one of the program it would make the user aware that there is a newer version. Else it would of course do nothing.

I have looked at this question:
Automatically checking for a new version of my application , and I it got me thinking. Is this the way I should be doing it? I’m not sure if doing it this way will provide me with enough ground you could say to give enough information.

I’m wondering which approach I should use and what sort of functions I would need to use as I have not played around with web based functions before.

  • 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-01T17:04:46+00:00Added an answer on June 1, 2026 at 5:04 pm

    As a general idea, this is pretty much what you have, I would recommend to return not just a number, but instead some dictionary/map, serialized as JSON or similar, so maybe in the future you would like to put more data, and still be compatible with old versions. For example, instead of returning :

    1
    

    return:

    {"latest_version" : 5}
    

    So if you want to add more details in the future, you may return:

    {"latest_version" : 5, "minimal_compatible_version" : 2, "download_file_size_in_bytes" : 123456 }
    

    The idea is to let the response expand (when you need to return more data) and still be backward compatible.

    As for how to perform such a request, take a look here (although apache commons has a great library as well).

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

Sidebar

Related Questions

I'm trying to link 10 computers together, the program I would like to write
I have a program which I would like to run every X min the
If we would like to check for memory leaks in a C++ program, we
When inserting a new row in a table T, I would like to check
I'm writing a blackjack program and would like to be able to write the
I would like to program a computer game which should be played by several
I would like to see how a program responds when it's connection is severed.
I would like to create a console program in VB.net that would allow parameters.
I would like to change a program to automatically detect whether a terminal is
I would like to use Swing to program a simple learning game. I am

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.