Saturday 19 March 2016

android.os.NetworkOnMainThreadException sending an email from Android

I have written an application which sends email from an Android device but I get the following exception when I try to send an email:



android.os.NetworkOnMainThreadException



Why is this occurring and how can I fix it?

No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...