【发布时间】:2012-03-12 14:40:46
【问题描述】:
在我的应用程序中,我通过电子邮件发送错误报告。我听说在这里硬编码我的密码不安全,我该如何保护它?
写入我的 /res/values 然后从那里读取就足够了吗?
这样做的原因是我不会使用内部电子邮件应用程序。然后用户退出我的应用程序,这不是很好,因为他可能不会回来
GMailSender sender = new GMailSender("my_emailadress@gmail.com", "my_password");
sender.sendMail("Bugreport",
currentQuestion.getID(),
"my_emailadress@gmail.com",
"my_emailadress@gmail.com");
请帮助我。 谢谢
【问题讨论】:
标签: android email passwords gmail hardcode