Buggy code:
public class Api { private String TAG = "API" ; private String protocol = "https" ; private static Api mInstance ; private VolleySingleton volley ; private Context mCtx ; public static ProgressDialog progressDialog ; private String host ; private Context activityCtx ; private Api ( Context context ) { } public static synchronized Api getInstance ( Context context ) { } public void setActivityContext ( Context ctx ) { } public void setHost ( String url ) { } public void stringReq ( final String url , final VolleyCallback callback ) { } private void stringPostReq ( String url , final String params , final VolleyCallback callback ) { } private void handleErrorResponse ( VolleyError error ) { Api . progressDialog . dismiss ( ) ; if ( error instanceof TimeoutError ) { Log . e ( TAG , ( ( "TimeoutError:<seq2seq4repair_space>" + ( error . getNetworkTimeMs ( ) ) ) + "<seq2seq4repair_space>ms" ) ) ; <START_BUG> Toast . makeText ( activityCtx , ( ( "TimeoutError:<seq2seq4repair_space>" + ( error . getNetworkTimeMs ( ) ) ) + "<seq2seq4repair_space>ms" ) , LENGTH_LONG ) . show ( ) ; <END_BUG> } else if ( error instanceof NoConnectionError ) { Log . e ( TAG , ( "NoConnectionError:<seq2seq4repair_space>" + ( error . getMessage ( ) ) ) ) ; Toast . makeText ( activityCtx , ( "NoConnectionError:<seq2seq4repair_space>" + ( error . getMessage ( ) ) ) , LENGTH_LONG ) . show ( ) ; } else if ( error instanceof ServerError ) { try { JSONObject json = new JSONObject ( new String ( error . networkResponse . data ) ) ; Log . e ( TAG , json . getString ( "error_description" ) ) ; Toast . makeText ( activityCtx , json . getString ( "error_description" ) , LENGTH_LONG ) . show ( ) ; } catch ( JSONException e ) { e . printStackTrace ( ) ; Log . e ( TAG , ( "ServerError:<seq2seq4repair_space>" + ( error . getMessage ( ) ) ) ) ; Toast . makeText ( activityCtx , ( "ServerError<seq2seq4repair_space>" + ( error . networkResponse . statusCode ) ) , LENGTH_LONG ) . show ( ) ; } } else if ( error instanceof NetworkError ) { Log . e ( TAG , ( "NetworkError:<seq2seq4repair_space>" + ( error . getMessage ( ) ) ) ) ; Toast . makeText ( activityCtx , ( "NetworkError:<seq2seq4repair_space>" + ( error . getMessage ( ) ) ) , LENGTH_LONG ) . show ( ) ; } else if ( error instanceof ParseError ) { Log . e ( TAG , ( "ParseError:<seq2seq4repair_space>" + ( error . getMessage ( ) ) ) ) ; Toast . makeText ( activityCtx , ( "ParseError:<seq2seq4repair_space>" + ( error . getMessage ( ) ) ) , LENGTH_LONG ) . show ( ) ; } else if ( ( ( error . networkResponse ) != null ) && ( ( error . networkResponse . data ) != null ) ) { try { JSONObject json = new JSONObject ( new String ( error . networkResponse . data ) ) ; Log . e ( TAG , json . getString ( "Message" ) ) ; Toast . makeText ( activityCtx , ( ( ( error . networkResponse . statusCode ) + ":<seq2seq4repair_space>" ) + ( json . getString ( "Message" ) ) ) , LENGTH_LONG ) . show ( ) ; } catch ( JSONException e ) { e . printStackTrace ( ) ; } } } public void getCert ( final VolleyCallback callback ) { } public void ping ( VolleyCallback callback ) { } public void getToken ( String username , String password , VolleyCallback callback ) { } public void isValid ( String username , String password , VolleyCallback callback ) { } public void getUser ( String name , VolleyCallback callback ) { } public void getUserMembership ( String name , VolleyCallback callback ) { } public void getUsers ( VolleyCallback callback ) { } public void getServices ( VolleyCallback callback ) { } public void getProcesses ( VolleyCallback callback ) { } public void getInactive ( VolleyCallback callback ) { } public void showDiskSpace ( VolleyCallback callback ) { } public void createUser ( String name , String login , String password , VolleyCallback callback ) { } public void getService ( String name , VolleyCallback callback ) { } public void startService ( String name , VolleyCallback callback ) { } public void stopService ( String name , VolleyCallback callback ) { } public void restartService ( String name , VolleyCallback callback ) { } public void getProcess ( int id , VolleyCallback callback ) { } public void stopProcess ( int id , VolleyCallback callback ) { } }

Fix:
Toast . makeText ( activityCtx , "TimeoutError" , LENGTH_LONG ) . show ( ) ;