短信可以直接在第三方应用程序(android)上打开吗?
当发送短信时,假设有一个应用程序“myApp”,它将在接收者的默认短信应用程序中打开。但我想控制它对接收者的外观(例如改变颜色)。是否有办法发送文本并在本机应用程序“myApp”中读取该文本?或者确定它是从“myApp”发送的并将消息导入到“myApp”。
when a text message is sent form, lets say an application 'myApp' it'll open in default text message app of the receiver. but i want to control how it looks to receiver(like changing colour). Is there anyway to send text and read that text in native app, 'myApp'? Or identify it was sent from 'myApp' and import message to 'myApp'.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
确保您可以接收消息 为传入消息创建广播接收器,每次消息到达时启动显示消息的活动...
并在清单文件中添加这些权限
和此接收器
从您的应用程序发送短信
,并使用此方法
sure you can to receive messages make a broadcast receiver for ingoing messages an each time a message arrive start your activity that displays the message ...
and in your manifest file add these permissions
and this receiver
and to send SMS from your app
use this method