java - Network on Main Thread exception while trying to send e-mails in Android without user intervention -


this question has answer here:

i tried implement sending of emails without user intervention explained in post that's open issue: sending email in android using javamail api without using default/built-in app did not send e-mails. following error: "networkonmainthreadexception" can help?

pd. don´t put comment in post because don't leave, guess closed. thank you.

you can not perform network operation in main thread.. use asynctask instead


Comments

Popular posts from this blog

How can I fetch data from a web server in an android application? -

android - java.net.UnknownHostException(Unable to resolve host “URL”: No address associated with hostname) -

jquery - How can I dynamically add a browser tab? -