Exemplo n.º 1
0
 public static void showToast(int resId) {
   if (BaseApplication.getInstance() != null) {
     Toast.makeText(BaseApplication.getInstance(), resId, Toast.LENGTH_SHORT).show();
   }
 }
Exemplo n.º 2
0
 public static void showToast(String msg) {
   if (BaseApplication.getInstance() != null) {
     Toast.makeText(BaseApplication.getInstance(), msg, Toast.LENGTH_SHORT).show();
   }
 }