在TextView的短信显示,而不是用吐司 [英] Sms message display in textView and not use the Toast

查看:145
本文介绍了在TextView的短信显示,而不是用吐司的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经研究了从mobiForge Android中的短信。尼斯教程。
我现在可以接收和我的应用程序发送短信。

I have studied the SMS Messaging in Android from the mobiForge. Nice tutorial. I can now receive and send Sms from my application.

然而在本教程中使用吐司类显示接收的短信。但我想显示一个TextView短信。

However in this tutorial the received sms is displayed using the Toast class. But I want to display the SMS in a textView.

谁能帮助?

推荐答案

所有你需要做的是,而不是显示敬酒的消息receaved的那一刻,做一个textView.setText(smsContentEtc);

All you have to do is, instead of displaying a toast the moment the message is receaved, doing a "textView.setText("smsContentEtc");

这篇关于在TextView的短信显示,而不是用吐司的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆