Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Do your network operations on a background thread or disable <a href="http://developer.android.com/reference/android/os/StrictMode.html" rel="nofollow">StrictMode</a></p> <p>Instead of calling <code>senddata</code> as you currently do (I don't know which function you're calling it from, but that function is running on the UI thread), try calling it in an <code>AsyncTask</code> like this:</p> <pre><code> someFunctionOnTheUIThread() { //senddata(); //this is your current senddata() call. Replace it with the following (new AsyncTask&lt;Void, Void, Void&gt;() { @Override protected Void doInBackground(Void... params) { senddata(); return null; } }).execute((Void)null); } </code></pre> <p>As stated in the beginning, you can also disable <code>StrictMode</code>, but it's <strong>highly</strong> unrecommended as it'll block the UI, you'll get ANRs (Application Not Responding) when the network is slow (or the request "hangs" - it can happen even on good networks and, if it does, the default timeout for the request is, AFAIK and assuming you haven't changed it, 30 seconds ).</p> <p>Please look at other questions asked about this on StackOverflow. There are a lot of useful and more detailed answers for this. Also, for future questions, <strong>please</strong> check to see if your question has already been asked here by another person before posting it. It'll lower the amount of duplicate questions and it won't get you down-voted (and your question closed and marked as a duplicate).</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.
    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