且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在Android应用程序接收彩信

更新时间:2022-12-21 10:24:10

你的大多数问题都无关,与你的任务的一部分,MMS。大部分是标准的Java和/或Android,您需要承担这样的任务之前,了解。

Most of your questions have nothing to do with the MMS part of your assignment. Most of it is standard java and/or Android, that you need to understand before taking on such a task.

除此之外,SMS和MMS不直接支持并且主要undocumentet,所以它是非常难的工作。

Besides that, SMS and MMS are not directly supported and is mostly undocumentet, so it is very hard to work with.

我一直在短信和彩信玩了一圈,发现这些链接非常有用:

I have been playing around with sms and mms and found these links very useful:

如何在Android的阅读彩信数据?

http://groups.google.com/group/android-developers/browse_thread/thread/d0c15ec17c12af0e?fwc=1&pli=1

而现在,我在这,我还不如回答一些你有更多的简单问题:

And now that i'm at it, i might as well answer some of the more simple questions you have:

的ViewGroup和ListView

一个ViewGroup中是可以包含其他视图(的LinearLayout,RelativeLayout的...),其中一个ListView最意见父创建可滚动的项目列表的ViewGorup。

A ViewGroup is a superclass for most views that can contain other views (LinearLayout, RelativeLayout ...), where a ListView is "a ViewGorup that creates a list of scrollable items."

为什么他宣称它像这样我的意思是,它为什么没有宣布类似这样的findViewById(R.)等

findViewById使用。在这种情况下,他创建(而不是在一个XML文件中定义它),在运行时一个TextView并将其添加到ListView。

findViewById is used when you have an xml layout file, and want to reference a View in that layout. In this case he creates a TextView at runtime (Instead of defining it in an xml file) and adds it to the ListView.