示例#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();
   }
 }