why cannot an emulator send email in android

回眸只為那壹抹淺笑 提交于 2019-12-31 04:25:37

问题


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 actual devices to send an email. why is this so?

thank you in advance


回答1:


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.




回答2:


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.




回答3:


Because the emulator does not have an email app. You'll have to install one.




回答4:


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.



来源:https://stackoverflow.com/questions/5042487/why-cannot-an-emulator-send-email-in-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!