question: private void searchSMS ( String message , String contactName ) { ArrayList < Contact > contacts ; send ( R . string . chat_sms_search_start ) ; contacts = ContactsManager . getMatchingContacts ( sContext , contactName ) ; if ( contacts . size ( ) > 0 ) { send ( R . string . chat_sms_search , message , contacts . size ( ) ) ; for ( Contact contact : contacts ) { ArrayList < Sms > smsList = mSmsManager . getSms ( ContactsManager . getPhones ( sContext , contact . ids ) , message ) ; Collections . sort ( smsList ) ; if ( smsList . size ( ) > 0 ) { sendSmsListOnXmpp ( smsList , contact . name , null ) ; } } send ( "Done" ) ; } else { send ( R . string . chat_no_match_for , message ) ; } }
target:  Search for SMS Mesages and sends them back to the user