One good built-in check in Android development is the fact if any network operation is done, the compiler flags an error if it is being executed in the main thread. So any code which is trying to access something outside the device, needs to be in a separate thread. AsyncTask is an excellent choice for this, because it is meant …
↧