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

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

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -