title: How to get full URL from compressed URL in Android?
body: <p>I have a compressed URL of place holder site (<a href="http://placehold.it/600/24f355" rel="nofollow">http://placehold.it/600/24f355</a>). 
  how can I get full URL (<a href="https://placeholdit.imgix.net/~text?txtsize=56&amp;bg=24f355&amp;txt=600%C3%97600&amp;w=600&amp;h=600" rel="nofollow">https://placeholdit.imgix.net/~text?txtsize=56&amp;bg=24f355&amp;txt=600%C3%97600&amp;w=600&amp;h=600</a>) from the compressed URL in Android?</p>
  
  <p>I tried the following but I get same URL what I give.</p>
  
  <pre><code>public static void main(String[] args) {
  String shortURL = "http://placehold.it/600/24f355";
  
  System.out.println("Short URL: " + shortURL);
  URLConnection urlConn = connectURL(shortURL);
  urlConn.getHeaderFields();
  System.out.println("Original URL: " + urlConn.getURL());
  }
  
  static URLConnection connectURL(String strURL) {
      URLConnection conn = null;
      try {
          URL inputURL = new URL(strURL);
          conn = inputURL.openConnection();
      } catch (MalformedURLException e) {
          System.out.println("Please input a valid URL");
      } catch (IOException ioe) {
          System.out.println("Can not connect to the URL");
      }
      return conn;
  }
  </code></pre>