如何在 onreceive 方法以及类扩展 Broadcast 中发送短信
我在 onreceive 方法上发生了 2 个操作,我需要类来扩展广播接收器,但我无法发送短信,因为它必须扩展活动,并且我想让短信自动重播,因此它必须位于 onreceive 方法中我还接收消息并将其转换为语音,这两个操作中的每一个都位于切换按钮上我已经执行了转换操作,我可以注册和取消注册接收器,但它无法发送自动回复短信。如果你请回答我
I have 2 actions happened on the onreceive method and i need the class to extend broadcastreceiver and i couldn't send the sms because it have to extend activity and i want to make the sms automatic replay so it have to be in on the onreceive method and also I take the message and convert it to speech and each one of the two action is on a toggle buttton I already did the convert action and i could register and unregister the receiver but it couldnt sent an autoreply sms.if you please answer me
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
下面的代码自动发送短信
广播接收器类
}
接收器活动
}
希望它会有所帮助!
The following code send sms automatically
Broadcast Receiver class
}
Receiver Activity
}
Hope it will help!!