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

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

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