Popup Debug Message : Toast « UI « Android






Popup Debug Message

    

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

import android.content.Context;
import android.widget.Toast;

// Classe d'utilitaires
 abstract class Utils {
  
  public static void popDebug(Context context, String message) {
    Toast.makeText(context, message, 1000).show();
  }
  
}

   
    
    
    
  








Related examples in the same category

1.Raise a Toast
2.Toast Message Demo
3.Using Toast.LENGTH_SHORT
4.Toast and Notification, vibrate and sound
5.Show Toast
6.Make Toast Text
7.Responsible for sending Toasts under all circumstances.
8.Toast.LENGTH_SHORT
9.AlertDialog vs Toast
10.Show long,short Toast
11.The Toast util class
12.show Toast in a Thread