Skip to main content
Copy edited.
Source Link
Peter Mortensen
  • 31.4k
  • 22
  • 110
  • 134

thisThis happens in Android 3.0 and above From. From Android 3.0 and above, they have restricted using network operations (functions that access the internetInternet) from running in the main thread/uIUI thread (what spawns from your on create and on resume methods in the activity) This.

This is to encourage using separate threads for network operations. See asynctask See AsyncTask for more details on how to perform network activities the right way http://developer.android.com/reference/android/os/AsyncTask.html.

this happens in Android 3.0 and above From Android 3.0 and above they have restricted using network operations (functions that access the internet) from running in the main thread/uI thread (what spawns from your on create and on resume methods in the activity) This is to encourage using separate threads for network operations. See asynctask for more details on how to perform network activities the right way http://developer.android.com/reference/android/os/AsyncTask.html

This happens in Android 3.0 and above. From Android 3.0 and above, they have restricted using network operations (functions that access the Internet) from running in the main thread/UI thread (what spawns from your on create and on resume methods in the activity).

This is to encourage using separate threads for network operations. See AsyncTask for more details on how to perform network activities the right way.

Source Link

this happens in Android 3.0 and above From Android 3.0 and above they have restricted using network operations (functions that access the internet) from running in the main thread/uI thread (what spawns from your on create and on resume methods in the activity) This is to encourage using separate threads for network operations. See asynctask for more details on how to perform network activities the right way http://developer.android.com/reference/android/os/AsyncTask.html