kaveer
11/10/2016 - 3:36 PM

Display toast

Display toast

Toast messageBox = 
Toast.makeText(getActivity() , "Fuel record added successfully" , Toast.LENGTH_LONG);
messageBox.show();
  Toast messageBox = Toast.makeText(Login.this , "Login successful" , Toast.LENGTH_LONG);
  messageBox.show();
  
  //where Login.this is the name of the activity