i looking for code to send an email from my android application. I have googled and read that the code that are given will not run on emulators. i will have to put the code on a
This migh be helpful Android Email Intent
If you are using an emulator, you’ll need to configure the email client. If the email client is not configured, it will not respond to the Intent we’ll be discussing. If you want to see the chooser in action, you’ll need to configure a device using multiple messaging applications, such as the Gmail application and the Email application.
But using a phone might be way better and easy for sure.
Because the emulator does not have an email app. You'll have to install one.
Because emulator is our virtual device is use only for testing purpose. and reason is emulator is not a valid IP address due to security purpose it is not send email by emulator.
As the previous answers said, the emulator doesn't include any email application for security purposes. Nonetheless you can download one (k9mail, for example) and it will work without issues whatsoever.