Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>ORIGINAL ANSWER (Scratch it)</strong></p> <p><code>Uri.toString</code> writes out a description of the URI object from the class Uri.</p> <p>Documentation is here: <a href="http://developer.android.com/reference/android/net/Uri.html" rel="nofollow">http://developer.android.com/reference/android/net/Uri.html</a></p> <p>To get the human readable version, invoke the getter methods defined for the class.</p> <p><strong>THE REAL ANSWER</strong></p> <p>The OP has clarified and provided the actual code. Here is the actual context:</p> <pre><code>@Override protected Document doInBackground(Uri... arg0) { Document ret = null; Log.v("HTTPGet", "Uri.toString == " + arg0.toString()); try { ret = Jsoup.connect(arg0.toString()).get(); } catch (IOException e) { e.printStackTrace(); } return ret; } </code></pre> <p>What is happening here is that the parameter <code>arg0</code> has type <code>Uri[]</code>, namely an <strong>array of Uri</strong>. The dot-dot-dot syntax is Java's "varargs". It means the parameter is actually an array, but rather than passing an array in the call, you can pass any number of arguments that Java will bundle up into an array.</p> <p>Because you are using a third party library, you have to override this method which takes in one <strong>or more</strong> Uris. You are assuming that only one will be used. If this is the case, you should instead write</p> <pre><code>Log.v("HTTPGet", "Uri.toString == " + arg0[0].toString()); </code></pre> <p>If you really will be processing multiple uris, use a for-loop to go through and log all of them.</p> <p>Make sure to fix your <code>Jsoup.connect</code> line too. It doesn't want a messy array string. :)</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload