Пример #1
0
 public static void showToast(int resId) {
   if (BaseApplication.getInstance() != null) {
     Toast.makeText(BaseApplication.getInstance(), resId, Toast.LENGTH_SHORT).show();
   }
 }
Пример #2
0
 public static void showToast(String msg) {
   if (BaseApplication.getInstance() != null) {
     Toast.makeText(BaseApplication.getInstance(), msg, Toast.LENGTH_SHORT).show();
   }
 }