在机器人为什么不能模拟器发送电子邮件模拟器、机器人、发送电子邮件

2023-09-05 04:36:34 作者:无限嚣张

我在寻找code,从我的Andr​​oid应用程序发送电子邮件。我用Google搜索并阅读了code,它给出不能在模拟器上运行。我将不得不把在实际设备上的code发送电子邮件。 为什么会这样?

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?

感谢你在前进

推荐答案

这migh是有帮助的 Android的电子邮件意图

This migh be helpful Android Email Intent

如果您使用的是仿真器,将   需要配置的电子邮件客户端。如果   电子邮件客户端没有配置,它   不会的意图作出回应,我们将   要讨论。如果你想看到的   选择器在行动上,你需要   配置使用多个设备   消息应用,如   Gmail应用程序和电子邮件   应用程序。

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.