如何在android studio中创建文本消息 [英] How to create a text message in android studio
本文介绍了如何在android studio中创建文本消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,我希望您能帮助我如何通过发送和接收文本在android studio中制作文本短信,并且还有一个存档搜索消息。请在[EMAIL REMOVED]发送给我一个关于如何在我的电子邮件中制作它的想法或提示
我尝试了什么:
什么都没有,我已经开始做任何事情
hello please i would like you to help me on how to make a text sms message in android studio via send and receive text and also have a archive search message. please kindly send me a idea or hint on how to make it on my email at [EMAIL REMOVED]
What I have tried:
nothing yet and i have started to do anything
推荐答案
Android开发人员对一切都进行了很好的解释和记录网站, SmsManager | Android开发者 [ ^ ] 。SmsManager
对象用于使用客户的GSM提供商发送消息。
Everything is well explained and documented on Android developers website, SmsManager | Android Developers[^]. TheSmsManager
object is used to send the messages, using the GSM providers of the customers.
// Sample code to send SMS
SmsManager manager = SmsManager.getDefault();
if(manager != null) {
// null are for other settings and intents.
manager.sendTextMessage("phonenumber", null, "message", null, null);
}
此外,您还需要了解权限如何在Android平台上运行,发送和接收(通知)新邮件需要权限;所以也尝试阅读它们。完成后,您将能够编写一个执行此操作的应用程序 - 用于搜索网站右上角的文章。否则,您将始终可以在Google / GitHub上搜索内容。
Android发送短信 - TutorialsPoint [ ^ ]
这篇关于如何在android studio中创建文本消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文