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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T15:58:56+00:00 2026-06-05T15:58:56+00:00

I want to query the server to see if the date is different than

  • 0

I want to query the server to see if the date is different than the one I have on the phone
that I previously downloaded. I want to keep from un-necessarily downloading the image again if I already have it. Looking for a way to get remote URL file date AND time without downloading the image again. Code Below that fetches all.

       File root = Environment.getExternalStorageDirectory();
   URL u = new URL(url);
   HttpURLConnection c = (HttpURLConnection) u.openConnection();
   c.setRequestMethod("GET");
   c.setDoOutput(true);
   c.connect();
   InputStream in = c.getInputStream();
   Drawable d = Drawable.createFromStream(in, "src name");
   printi("Content length",c.getContentLength());
  • 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-05T15:58:58+00:00Added an answer on June 5, 2026 at 3:58 pm
       File root = Environment.getExternalStorageDirectory();
       URL u = new URL(url);
       HttpURLConnection c = (HttpURLConnection) u.openConnection();
       c.setRequestMethod("HEAD");
    
       c.connect();
       InputStream in = c.getInputStream();
       long dt=c.getLastModified();  //File Modified Date!!!
       printtime("File Time ",dt);
       c.disconnect();       //close connection  ????
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a list of words that I want to exclude from some query
I want to query the datastore for Expando entities that have a certain dynamic
Scenario I'm using SQL Server 2005 I have a T-Sql query that has multiple
I want to test a server I have deployed on GAE to see if
I want to port this SQL query, which works just fine on SQL Server,
I'm accepting dates from a wicket form - now I want query my DAO
I want to query a table so that it´s ordered the following way: 1)
I want to query a column that has spaces in its name. The shell
I want to query from dbpedia using their sparql interface (http://dbpedia.org/sparql) I want to
I want to make a program that pulls objects from a sql database and

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.