Buggy code:
private class LoginThread extends Thread { int loginType ; public LoginThread ( int loginType ) { } @ Override public void run ( ) { } } private Thread syncThread ; private int total ; private class SyncThread extends Thread { Handler mHandler ; Message msg ; int progress = 0 ; public SyncThread ( Handler h ) { } @ Override public void run ( ) { } private void retriveDeletedContacts ( ) throws VCardException , ElementNotFound , IOException , InterruptedException , ExecutionException , ClientProtocolException { } private Uri recoverDeletedContact ( ContactStruct vcard , final String action , boolean recover ) { } } private Uri recoverOneContact ( ContactStruct vcard , final String action , boolean recover ) { } private void registerProviderStatusObserver ( ) { } private void unregisterProviderStatusObserver ( ) { } private void setupListView ( ) { } private void setupSearchView ( ) { } private String getContactDisplayName ( long contactId ) { } private int getSummaryDisplayNameColumnIndex ( ) { } public void onClick ( View v ) { } private void setEmptyText ( ) { } private boolean isSyncActive ( ) { } private void buildUserGroupUri ( String group ) { } private void setDefaultMode ( ) { } @ Override protected void onDestroy ( ) { } @ Override protected void onPause ( ) { } @ Override protected void onResume ( ) { } private boolean checkProviderState ( boolean loadData ) { } private void configureImportFailureView ( View importFailureView ) { } private String getTextFilter ( ) { } @ Override protected void onRestart ( ) { } @ Override protected void onSaveInstanceState ( Bundle icicle ) { } @ Override protected void onRestoreInstanceState ( Bundle icicle ) { } @ Override protected void onStop ( ) { } @ Override public boolean onCreateOptionsMenu ( Menu menu ) { } @ Override public boolean onPrepareOptionsMenu ( Menu menu ) { } @ Override public boolean onOptionsItemSelected ( MenuItem item ) { } private Builder getFirstSyncDialog ( int syncType ) { } private Builder syncDialog ; private void sync ( int syncType ) { } private void reSync ( ) { } private ContactsListActivity . DialogShowHandler dialogShowHandler = new ContactsListActivity . DialogShowHandler ( ) ; private class DialogShowHandler extends Handler { @ Override public void handleMessage ( Message msg ) { } } private ProgressDialog syncProgressDialog ; private Builder failedDialog ; private Builder getFailedDialog ( String title , String msg , int dialogType ) { } private ProgressDialog waitingDialog ; private Dialog getWaitingDialog ( String msg ) { } @ Override public void startSearch ( String initialQuery , boolean selectInitialQuery , Bundle appSearchData , boolean globalSearch ) { } protected void onSearchTextChanged ( ) { } private void doSearch ( ) { } @ Override protected Dialog onCreateDialog ( int id , Bundle bundle ) { } private void displayImportExportDialog ( ) { } private void doShareVisibleContacts ( ) { final Cursor cursor = getContentResolver ( ) . query ( CONTENT_URI , sLookupProjection , getContactSelection ( ) , null , null ) ; try { if ( ! ( cursor . moveToFirst ( ) ) ) { Toast . makeText ( this , share_error , LENGTH_SHORT ) . show ( ) ; return ; } StringBuilder uriListBuilder = new StringBuilder ( ) ; int index = 0 ; for ( ; ! ( cursor . isAfterLast ( ) ) ; cursor . moveToNext ( ) ) { if ( index != 0 ) uriListBuilder . append ( ':' ) ; uriListBuilder . append ( cursor . getString ( 0 ) ) ; index ++ ; } Uri uri = Uri . withAppendedPath ( CONTENT_MULTI_VCARD_URI , Uri . encode ( uriListBuilder . toString ( ) ) ) ; <START_BUG> final Intent intent = new Intent ( TIntent . ACTION_SEND ) ; <END_BUG> intent . setType ( CONTENT_VCARD_TYPE ) ; intent . putExtra ( EXTRA_STREAM , uri ) ; startActivity ( intent ) ; } finally { cursor . close ( ) ; } } private void handleImportRequest ( int resId ) { } @ Override protected void onActivityResult ( int requestCode , int resultCode , Intent data ) { } @ Override public void onCreateContextMenu ( ContextMenu menu , View view , ContextMenuInfo menuInfo ) { } @ Override public boolean onContextItemSelected ( MenuItem item ) { } public boolean onKey ( View v , int keyCode , KeyEvent event ) { } public void afterTextChanged ( Editable s ) { } public void beforeTextChanged ( CharSequence s , int start , int count , int after ) { } public void onTextChanged ( CharSequence s , int start , int before , int count ) { } public boolean onEditorAction ( TextView v , int actionId , KeyEvent event ) { } @ Override public boolean onKeyDown ( int keyCode , KeyEvent event ) { } private boolean deleteSelection ( ) { } protected void doContactDelete ( Uri contactUri ) { } public void onFocusChange ( View view , boolean hasFocus ) { } public boolean onTouch ( View view , MotionEvent event ) { } public boolean onKeyPreIme ( int keyCode , KeyEvent event ) { } protected void doContactFinalDelete ( ) { } @ Override protected void onListItemClick ( ListView l , View v , int position , long id ) { } private void hideSoftKeyboard ( ) { } private void returnPickerResult ( Cursor c , String name , Uri selectedUri ) { } private Bitmap framePhoto ( Bitmap photo ) { } private Bitmap generatePhoneNumberIcon ( Uri lookupUri , int type , int actionResId ) { } private Bitmap scaleToAppIconSize ( Bitmap photo ) { } private Bitmap createShortcutBitmap ( ) { } private Bitmap getPhoneActionIcon ( Resources r , int resId ) { } private Uri getUriToQuery ( ) { } private Uri getContactUri ( int position ) { } private Uri getSelectedUri ( int position ) { } String [ ] getProjectionForQuery ( ) { }

Fix:
final Intent intent = new Intent ( Intent . ACTION_SEND ) ;