Buggy code:
@ Override protected void onPostExecute ( String result ) { super . onPostExecute ( result ) ; try { if ( serviceType . equals ( "LoginService" ) ) { JSONParser parser = new JSONParser ( ) ; Object obj = parser . parse ( result ) ; JSONObject object = ( ( JSONObject ) ( obj ) ) ; if ( ( ! ( object . containsKey ( "Status" ) ) ) || ( object . get ( "Status" ) . equals ( "Failed" ) ) ) { Toast . makeText ( Application . getAppContext ( ) , "Username<seq2seq4repair_space>or<seq2seq4repair_space>Password<seq2seq4repair_space>may<seq2seq4repair_space>be<seq2seq4repair_space>wrong." , LENGTH_LONG ) . show ( ) ; return ; } UserController . currentActiveUser = UserEntity . createLoginUser ( result ) ; System . out . println ( ( ( ( "---<seq2seq4repair_space>" + ( serviceType ) ) + "IN<seq2seq4repair_space>LOGIN<seq2seq4repair_space>" ) + ( object . get ( "Status" ) ) ) ) ; UserController . homeIntent . setFlags ( FLAG_ACTIVITY_NEW_TASK ) ; UserController . homeIntent . putExtra ( "status" , object . get ( "Status" ) . toString ( ) ) ; UserController . homeIntent . putExtra ( "username" , object . get ( "name" ) . toString ( ) ) ; UserController . homeIntent . putExtra ( "userid" , object . get ( "ID" ) . toString ( ) ) ; UserController . homeIntent . putExtra ( "userpassword" , object . get ( "password" ) . toString ( ) ) ; UserController . homeIntent . putExtra ( "useremail" , object . get ( "email" ) . toString ( ) ) ; UserController . homeIntent . putExtra ( "service" , "login" ) ; Application . getAppContext ( ) . startActivity ( UserController . homeIntent ) ; } else if ( serviceType . equals ( "RegistrationService" ) ) { JSONParser parser = new JSONParser ( ) ; Object obj = parser . parse ( result ) ; JSONObject object = ( ( JSONObject ) ( obj ) ) ; if ( ( ! ( object . containsKey ( "Status" ) ) ) || ( object . get ( "Status" ) . equals ( "Failed" ) ) ) { Toast . makeText ( Application . getAppContext ( ) , "Registration<seq2seq4repair_space>failed,<seq2seq4repair_space>Please<seq2seq4repair_space>try<seq2seq4repair_space>again." , LENGTH_LONG ) . show ( ) ; return ; } UserController . homeIntent . setFlags ( FLAG_ACTIVITY_NEW_TASK ) ; UserController . homeIntent . putExtra ( "status" , "Registered<seq2seq4repair_space>successfully" ) ; UserController . homeIntent . putExtra ( "service" , "signup" ) ; Application . getAppContext ( ) . startActivity ( UserController . homeIntent ) ; } else if ( serviceType . equals ( "SearchService" ) ) { JSONParser parser = new JSONParser ( ) ; Object obj = parser . parse ( result ) ; JSONArray object = ( ( JSONArray ) ( obj ) ) ; JSONObject ret = ( ( JSONObject ) ( object . get ( 0 ) ) ) ; if ( ( ! ( ret . containsKey ( "Status" ) ) ) || ( ret . get ( "Status" ) . equals ( "Failed" ) ) ) { Toast . makeText ( Application . getAppContext ( ) , "Name<seq2seq4repair_space>not<seq2seq4repair_space>found,<seq2seq4repair_space>search<seq2seq4repair_space>again." , LENGTH_LONG ) . show ( ) ; return ; } UserController . homeIntent . setFlags ( FLAG_ACTIVITY_NEW_TASK ) ; UserController . homeIntent . putExtra ( "status" , "lool<seq2seq4repair_space>you<seq2seq4repair_space>find" ) ; UserController . homeIntent . putExtra ( "service" , "search" ) ; UserController . homeIntent . putExtra ( "friendname" , ret . get ( "name" ) . toString ( ) ) ; UserController . homeIntent . putExtra ( "friendid" , ret . get ( "ID" ) . toString ( ) ) ; UserController . homeIntent . putExtra ( "friendemail" , ret . get ( "email" ) . toString ( ) ) ; UserController . homeIntent . putExtra ( "friendpassword" , ret . get ( "password" ) . toString ( ) ) ; Application . getAppContext ( ) . startActivity ( UserController . homeIntent ) ; } else if ( serviceType . equals ( "viewrequestService" ) ) { JSONParser parser = new JSONParser ( ) ; Object obj = parser . parse ( result ) ; JSONObject ret = ( ( JSONObject ) ( obj ) ) ; if ( ( ! ( ret . containsKey ( "Status" ) ) ) || ( ret . get ( "Status" ) . equals ( "Failed" ) ) ) { <START_BUG> Toast . makeText ( Application . getAppContext ( ) , "Name<seq2seq4repair_space>not<seq2seq4repair_space>found,<seq2seq4repair_space>search<seq2seq4repair_space>again." , LENGTH_LONG ) . show ( ) ; <END_BUG> return ; } UserController . homeIntent . setFlags ( FLAG_ACTIVITY_NEW_TASK ) ; UserController . homeIntent . putExtra ( "status" , "ok" ) ; UserController . homeIntent . putExtra ( "service" , "viewrequest" ) ; UserController . homeIntent . putExtra ( "vfriendname" , ret . get ( "friend_name" ) . toString ( ) ) ; UserController . homeIntent . putExtra ( "vfriendid" , ret . get ( "friend_id" ) . toString ( ) ) ; Application . getAppContext ( ) . startActivity ( UserController . homeIntent ) ; } else if ( serviceType . equals ( "RequestService" ) ) { UserController . homeIntent . setFlags ( FLAG_ACTIVITY_NEW_TASK ) ; UserController . homeIntent . putExtra ( "status" , "sending" ) ; UserController . homeIntent . putExtra ( "service" , "sendrequest" ) ; Application . getAppContext ( ) . startActivity ( UserController . homeIntent ) ; } else if ( serviceType . equals ( "acceptrequestService" ) ) { JSONParser parser = new JSONParser ( ) ; Object obj = parser . parse ( result ) ; JSONObject ret = ( ( JSONObject ) ( obj ) ) ; UserController . homeIntent . setFlags ( FLAG_ACTIVITY_NEW_TASK ) ; UserController . homeIntent . putExtra ( "status" , "ok" ) ; UserController . homeIntent . putExtra ( "service" , "acceptrequest" ) ; Application . getAppContext ( ) . startActivity ( UserController . homeIntent ) ; } } catch ( Exception e ) { e . printStackTrace ( ) ;

Fix:
Toast . makeText ( Application . getAppContext ( ) , "no<seq2seq4repair_space>Request<seq2seq4repair_space>found." , LENGTH_LONG ) . show ( ) ;