Buggy code:
public class EditClaimActivity extends Activity { private static final String FILENAME = "save.sav" ; final Context context = this ; private ClaimListModel Claims ; private ClaimModel currentClaim ; private String claimIDstr ; private int claimID ; private String newClaimName ; private int startDateDay ; private int startDateMonth ; private int startDateYear ; private int endDateDay ; private int endDateMonth ; private int endDateYear ; private String status ; private String description ; private EditText editTextEditClaimName ; private EditText editTextEditClaimStartDateDay ; private EditText editTextEditClaimStartDateMonth ; private EditText editTextEditClaimStartDateYear ; private EditText editTextEditClaimEndDateDay ; private EditText editTextEditClaimEndDateMonth ; private EditText editTextEditClaimEndDateYear ; private EditText editTextEditClaimDescription ; private Spinner spinnerEditStatus ; private Button buttonEditClaimDone ; private Button buttonEditClaimCancle ; @ Override protected void onCreate ( Bundle savedInstanceState ) { } public void addListenerOnSpinnerItemSelection ( ) { } @ Override protected void onStart ( ) { super . onStart ( ) ; Claims = this . loadFromFile ( ) ; currentClaim = Claims . getClaimList ( ) . get ( claimID ) ; editTextEditClaimName . setText ( currentClaim . getClaimName ( ) ) ; editTextEditClaimDescription . setText ( currentClaim . getDescription ( ) ) ; editTextEditClaimStartDateDay . setText ( String . valueOf ( currentClaim . getStartDate ( ) . get ( Calendar . DATE ) ) ) ; editTextEditClaimStartDateMonth . setText ( String . valueOf ( ( ( currentClaim . getStartDate ( ) . get ( Calendar . MONTH ) ) + 1 ) ) ) ; editTextEditClaimStartDateYear . setText ( String . valueOf ( currentClaim . getStartDate ( ) . get ( Calendar . YEAR ) ) ) ; editTextEditClaimEndDateDay . setText ( String . valueOf ( currentClaim . getEndDate ( ) . get ( Calendar . DATE ) ) ) ; editTextEditClaimEndDateMonth . setText ( String . valueOf ( ( ( currentClaim . getEndDate ( ) . get ( Calendar . MONTH ) ) + 1 ) ) ) ; editTextEditClaimEndDateYear . setText ( String . valueOf ( currentClaim . getEndDate ( ) . get ( Calendar . YEAR ) ) ) ; buttonEditClaimDone . setOnClickListener ( new View . OnClickListener ( ) { @ Override public void onClick ( View v ) { Intent intentDone = new Intent ( ) ; String t1 = editTextEditClaimStartDateDay . getText ( ) . toString ( ) ; String t2 = editTextEditClaimStartDateMonth . getText ( ) . toString ( ) ; String t3 = editTextEditClaimStartDateYear . getText ( ) . toString ( ) ; String t4 = editTextEditClaimEndDateDay . getText ( ) . toString ( ) ; String t5 = editTextEditClaimEndDateMonth . getText ( ) . toString ( ) ; String t6 = editTextEditClaimEndDateYear . getText ( ) . toString ( ) ; if ( ( ( ( ( ( t1 . equalsIgnoreCase ( "" ) ) || ( t2 . equalsIgnoreCase ( "" ) ) ) || ( t3 . equalsIgnoreCase ( "" ) ) ) || ( t4 . equalsIgnoreCase ( "" ) ) ) || ( t5 . equalsIgnoreCase ( "" ) ) ) || ( t6 . equalsIgnoreCase ( "" ) ) ) { <START_BUG> Toast . makeText ( getApplicationContext ( ) , "Emput<seq2seq4repair_space>input" , LENGTH_LONG ) . show ( ) ; <END_BUG> } else { newClaimName = editTextEditClaimName . getText ( ) . toString ( ) ; startDateDay = Integer . parseInt ( editTextEditClaimStartDateDay . getText ( ) . toString ( ) ) ; startDateMonth = Integer . parseInt ( editTextEditClaimStartDateMonth . getText ( ) . toString ( ) ) ; startDateYear = Integer . parseInt ( editTextEditClaimStartDateYear . getText ( ) . toString ( ) ) ; endDateDay = Integer . parseInt ( editTextEditClaimEndDateDay . getText ( ) . toString ( ) ) ; endDateMonth = Integer . parseInt ( editTextEditClaimEndDateMonth . getText ( ) . toString ( ) ) ; endDateYear = Integer . parseInt ( editTextEditClaimEndDateYear . getText ( ) . toString ( ) ) ; status = String . valueOf ( spinnerEditStatus . getSelectedItem ( ) ) ; description = editTextEditClaimDescription . getText ( ) . toString ( ) ; currentClaim . setClaimName ( newClaimName ) ; currentClaim . setDescription ( description ) ; Calendar startDate = Calendar . getInstance ( ) ; startDate . set ( startDateYear , ( ( startDateMonth ) - 1 ) , startDateDay ) ; currentClaim . setStartDate ( startDate ) ; Calendar endDate = Calendar . getInstance ( ) ; endDate . set ( endDateYear , ( ( endDateMonth ) - 1 ) , endDateDay ) ; currentClaim . setEndDate ( endDate ) ; currentClaim . setStatus ( status ) ; currentClaim . setDescription ( description ) ; saveInFile ( ) ; intentDone . setClass ( EditClaimActivity . this , MainActivity . class ) ; intentDone . setFlags ( FLAG_ACTIVITY_CLEAR_TOP ) ; EditClaimActivity . this . startActivity ( intentDone ) ; } } } ) ; buttonEditClaimCancle . setOnClickListener ( new View . OnClickListener ( ) { @ Override public void onClick ( View v ) { AlertDialog . Builder ADB = new AlertDialog . Builder ( context ) ; ADB . setTitle ( "Exit" ) ; ADB . setMessage ( "Are<seq2seq4repair_space>you<seq2seq4repair_space>sure<seq2seq4repair_space>you<seq2seq4repair_space>want<seq2seq4repair_space>to<seq2seq4repair_space>exit<seq2seq4repair_space>without<seq2seq4repair_space>saving?" ) ; ADB . setNegativeButton ( no , null ) ; ADB . setPositiveButton ( yes , new OnClickListener ( ) { public void onClick ( DialogInterface arg0 , int arg1 ) { Intent intentBackPressed = new Intent ( ) ; intentBackPressed . setClass ( EditClaimActivity . this , MainActivity . class ) ; intentBackPressed . setFlags ( FLAG_ACTIVITY_CLEAR_TOP ) ; EditClaimActivity . this . startActivity ( intentBackPressed ) ; } } ) . create ( ) . show ( ) ; } } ) ; } @ Override public boolean onCreateOptionsMenu ( Menu menu ) { } @ Override public boolean onOptionsItemSelected ( MenuItem item ) { } private ClaimListModel loadFromFile ( ) { } private void saveInFile ( ) { } @ Override public void onBackPressed ( ) { } No newline ; at end ; of file ; }

Fix:
Toast . makeText ( getApplicationContext ( ) , "Empty<seq2seq4repair_space>input" , LENGTH_LONG ) . show ( ) ;