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

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -