android - Sending request oncreate vs onresume -


When I send a request to my onCreate () method, I get There is a NetworkManthreadException exception , but when I send a request to the onResume () method, it works well. What is the difference? Is there any independent thread for the onResume method or what?

check link that contains the OnCreate () method & amp; Do not attempt to call or request to send OnResume () method always from the main thread to the network to the main thread or UI thread Do Always check the background service by checking the Async Task Check link for it also to help it.

Comments

Popular posts from this blog

python - how we can use ajax() in views.py in django? -

matlab - Using loops to get multiple values into a cell -

python - Sequence Pattern recognition with Pybrain -