how to use toast in android

  syntax for toast:

Toast.makeText(context, text, duration)
  example:
Toast.makeText(  ctx, "row deleted",Toast.LENGTH_LONG ).show();

where text is used to display the text and Toast.LENGTH_LONG is used to display the toast message for long tym n u can also use Toast.LENGTH_SHORT to display it for less tym




Comments

Popular Posts