public class ToastUtil {
private static Toast toast;
public static void showToast(Context context, String msg) {
if (toast == null) {
toast = Toast.makeText(context.getApplicationContext(), "", Toast.LENGTH_SHORT);
}
toast.setText(msg);
toast.show();
}
}