安卓短信定时器
好吧,伙计们,我需要最聪明的人来解决这个问题。我仍然是一个 Android 编程新手,但有人要求我尝试创建一个应用程序,允许用户延迟发送短信。
当应用程序运行时,IE 发送一条消息,它不会立即发送,而是等待一两分钟,然后询问您是否真的要发送;就像验证一样。
我不是要求代码,而是要求参考资料,以便我阅读并构建代码。这样的服务可行吗?
以下是应用程序需要访问的内容:
- 短信服务(在准备就绪之前防止发送短信)
- 联系人(用于白名单)
- 手机上的铃声。
感谢您的帮助。
Ok guys, I need the brightest minds on this. I am still a novice prorammer for android, but I have been asked to try to creat an app that will allow users to delay the send of their Text Messages.
I.E. when app is running, and I send a message it does not send right away but waits for a minute or two and then asks if you really want to send it; like a verification.
I am not asking for code, but for references which will allow me to read and then construct the code. Is such a service feasible?
Here is what the app needs to access:
- SMS service ( to prevent outgoing SMS until ready)
- Contact ( for whitelist)
- Ringtones on the phone.
thanks for the help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该创建自己的短信应用程序,在定时延迟和用户批准后发送消息,而不是覆盖 Android 短信服务的常规工作方式。从 Android 发送短信的代码很简单:
延迟只会稍微困难一点,并且使用计时器轻松处理。 获取联系人也很简单。
Rather than override the regular workings of Android's SMS service you should create your own SMS app that sends messages after a timed delay and user approval. The code for sending SMS from Android is trivial:
The delay would be only a little bit more difficult and easily handled with a timer. And getting the contacts is also simple.