Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If this really is your Manifest file, the error is obvious .The tags should not be <code>use[r]s-permission</code>, but <code>uses-permission</code>:</p> <pre><code>&lt;uses-permission android:name="android.permission.INTERNET" /&gt; &lt;uses-permission android:name="android.permission.SET_DEBUG_APP" /&gt; </code></pre> <p>Now you wouldn't have access to internet, and thus the error. If you switch to using an IDE like Eclipse and use autocomplete you will avoid such errors from the very beginning, but furthermore the IDE will underline this mistakes as warnings.</p> <p><strong>EDIT</strong>: About the error you get - you are trying to cast the entity of the response directly to an Integer. This will always fail, because Integer is not superclass of <code>HttpEntity</code>. You need to read the contents of the entity in a <code>String</code> and then parse the contents of the string to integer:</p> <pre><code>InputStream entityStream = entity.getcontent(); StringBuilder entityStringBuilder = new StringBuilder(); byte [] buffer = new byte[1024]; int bytesReadCount; while ((bytesReadCount = entityStream.read(buffer)) &gt; 0) { entityStringBuilder.append(new String(buffer, 0, bytesReadCount)); } String entityString = entityStringBuilder.toString(); Integer responseInteger = Integer.valueOf(entityString); </code></pre> <p>this is not highly optimized, but does the job. From then on you can use the <code>responseInteger</code> value as you like . However if you want to do <code>writer.write</code> you will need <code>String</code> value, not <code>Integer</code>. Thus I recommend you to use <code>entityString</code>.</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