Url format in android
<p>My application should send a https GET request. </p>

<p>Every time I get an exception from it. If I uncomment     <code>url = "http://www.example.com"</code> it works perfect. Otherwise it throws an exception "<code>Illegal character in scheme at index 3</code>".</p>

<p>How to fix it?</p>

<pre><code>   public class TestHttpManager {

   private final static String mask= "httрs://%s/action/?key=%s&amp;param1=%s&amp;param2=%s&amp;param3=%s";

   public static void Send() throws IOException, URISyntaxException {
           if (....)
              url = String.format(UrlMask, "anyHostName.com", "keyTest", "param1", "param2", "param3");

             //url = "http://www.example.com";
             HttpClient client = new DefaultHttpClient();
             HttpGet request = new HttpGet();
             request.setURI(new URI(url));
             client.execute(request);
        }

     }
</code></pre>

<p><strong>UPDATE</strong>: I have an error <code>Tagret host must not be null, or set in parameters</code> too.</p>
