Some analysts create the listview composeMessageActivity in adnroid source in mms

Click the list conversationList will then initiate a call composeMessageActivity.java SMS interface a single contact.

Start calling onCreate (). By setContentView (R.layout.compose_message_activity); initResourceRefs (); load some UI interface.

Some initialization data () in the initialize, in initActivityState () conversation initialized and associated composeMessageActivity, mWorkingMessage. Initialization messages in initMessageList () in the history list and corresponding mMsgListAdapter. Here some of the processing space is placed on the UI.

 

Then the onStart (), the loadMessageContent (), which will be loaded into the text message conversation data list. Complete the search for a contact in the SMS startMsgListQuery (), the achieved by startQuery, when the search is finished, the cursor will onQueryComplete search was bound to mMsgListAdapter then mMsgListAdapter will own the data into the listview . This realization of the function of the message list

Guess you like

Origin blog.csdn.net/dxh040431104/article/details/6456138