Buggy code:
public class MifareClassic1kActivity extends NFCUtilsBase implements OnItemClickListener { TextView tvUID ; TextView tvType ; TextView tvMemory ; TextView tvPage ; TextView tvBlock ; TextView value1 ; TextView value2 ; TextView value3 ; TextView value4 ; PinnedHeaderListView lvMifareClassic1k ; Classic1KAdapter adapter ; MifareClassic1k mifareClassic1k ; LinearLayout llViewOfValue ; LinearLayout llEditOfValue ; EditText etNFCValue ; RelativeLayout rlCancel ; RelativeLayout rlOK ; RelativeLayout rlshowvalue ; Spinner spBlockNumber ; Spinner spShowBlockValue ; String selectedBlockNumber ; int HeaderNmber ; NfcAdapter mAdapter ; PendingIntent mPendingIntent ; Tag tag ; AlertDialog writeAlertDialog ; @ Override protected void onCreate ( Bundle saveInstance ) { } @ Override protected void onResume ( ) { } @ Override protected void onPause ( ) { } private void Initalization ( ) { } @ Override public void onItemClick ( AdapterView < ? > adapterView , View view , int position , long id ) { } private void showValue ( final MifareClassic1k _mifareClassic1k ) { AlertDialog . Builder builder = new AlertDialog . Builder ( this , AlertDialog . THEME_HOLO_LIGHT ) ; <START_BUG> builder . setTitle ( "NFC<seq2seq4repair_space>Write" ) ; <END_BUG> LayoutInflater inflater = this . getLayoutInflater ( ) ; View dialogView = inflater . inflate ( write_1k_card , null ) ; builder . setView ( dialogView ) ; final AlertDialog alertDialog = builder . create ( ) ; alertDialog . getWindow ( ) . getAttributes ( ) . windowAnimations = style . DialogAnimation ; spBlockNumber = ( ( Spinner ) ( dialogView . findViewById ( R . id . spBlockNumber ) ) ) ; spShowBlockValue = ( ( Spinner ) ( dialogView . findViewById ( R . id . spShowBlockValue ) ) ) ; value1 = ( ( TextView ) ( dialogView . findViewById ( R . id . value1 ) ) ) ; value2 = ( ( TextView ) ( dialogView . findViewById ( R . id . value2 ) ) ) ; value3 = ( ( TextView ) ( dialogView . findViewById ( R . id . value3 ) ) ) ; value4 = ( ( TextView ) ( dialogView . findViewById ( R . id . value4 ) ) ) ; llViewOfValue = ( ( LinearLayout ) ( dialogView . findViewById ( R . id . llViewOfValue ) ) ) ; llEditOfValue = ( ( LinearLayout ) ( dialogView . findViewById ( R . id . llEditOfValue ) ) ) ; etNFCValue = ( ( EditText ) ( dialogView . findViewById ( R . id . etNFCValue ) ) ) ; rlCancel = ( ( RelativeLayout ) ( dialogView . findViewById ( R . id . rlCancel ) ) ) ; rlOK = ( ( RelativeLayout ) ( dialogView . findViewById ( R . id . rlOK ) ) ) ; rlshowvalue = ( ( RelativeLayout ) ( dialogView . findViewById ( R . id . rlshowvalue ) ) ) ; if ( ( _mifareClassic1k . Header ) == 0 ) { String [ ] valueOfULC = new String [ ] { "Select<seq2seq4repair_space>One" , String . valueOf ( _mifareClassic1k . block2 ) , String . valueOf ( _mifareClassic1k . block3 ) } ; spBlockNumber . setAdapter ( new android . widget . ArrayAdapter < String > ( this , layout . simple_list_item_1 , valueOfULC ) ) ; } else { String [ ] valueOfULC = new String [ ] { "Select<seq2seq4repair_space>One" , String . valueOf ( _mifareClassic1k . block1 ) , String . valueOf ( _mifareClassic1k . block2 ) , String . valueOf ( _mifareClassic1k . block3 ) } ; spBlockNumber . setAdapter ( new android . widget . ArrayAdapter < String > ( this , layout . simple_list_item_1 , valueOfULC ) ) ; } String [ ] convertOfULCValue = new String [ ] { "Hex<seq2seq4repair_space>Value" , "Asci<seq2seq4repair_space>Value" } ; spShowBlockValue . setAdapter ( new android . widget . ArrayAdapter < String > ( this , layout . simple_list_item_1 , convertOfULCValue ) ) ; llViewOfValue . setVisibility ( VISIBLE ) ; llEditOfValue . setVisibility ( GONE ) ; if ( ( _mifareClassic1k . Header ) != 0 ) { value1 . setText ( _mifareClassic1k . Block1Value ) ; value2 . setText ( _mifareClassic1k . Block2Value ) ; value3 . setText ( _mifareClassic1k . Block3Value ) ; } else { value2 . setText ( _mifareClassic1k . Block2Value ) ; value3 . setText ( _mifareClassic1k . Block3Value ) ; } spShowBlockValue . setOnItemSelectedListener ( new OnItemSelectedListener ( ) { @ Override public void onItemSelected ( AdapterView < ? > parent , View view , int position , long id ) { String value = ( ( String ) ( spShowBlockValue . getItemAtPosition ( position ) ) ) ; if ( value . equals ( "Hex<seq2seq4repair_space>Value" ) ) { if ( ( _mifareClassic1k . Header ) != 0 ) { value1 . setText ( _mifareClassic1k . Block1Value ) ; value2 . setText ( _mifareClassic1k . Block2Value ) ; value3 . setText ( _mifareClassic1k . Block3Value ) ; } else { value2 . setText ( _mifareClassic1k . Block2Value ) ; value3 . setText ( _mifareClassic1k . Block3Value ) ; } } else { if ( ( _mifareClassic1k . Header ) != 0 ) { value1 . setText ( CommonTask . hexToAscii ( _mifareClassic1k . Block1Value ) ) ; value2 . setText ( CommonTask . hexToAscii ( _mifareClassic1k . Block2Value ) ) ; value3 . setText ( CommonTask . hexToAscii ( _mifareClassic1k . Block3Value ) ) ; } else { value2 . setText ( CommonTask . hexToAscii ( _mifareClassic1k . Block2Value ) ) ; value3 . setText ( CommonTask . hexToAscii ( _mifareClassic1k . Block3Value ) ) ; } } } @ Override public void onNothingSelected ( AdapterView < ? > parent ) { } } ) ; spBlockNumber . setOnItemSelectedListener ( new OnItemSelectedListener ( ) { @ Override public void onItemSelected ( AdapterView < ? > parent , View view , int position , long id ) { selectedBlockNumber = ( ( String ) ( spBlockNumber . getItemAtPosition ( position ) ) ) ;

Fix:
builder . setTitle ( ( "NFC<seq2seq4repair_space>Write<seq2seq4repair_space>Sector<seq2seq4repair_space>#" + ( _mifareClassic1k . Header ) ) ) ;