Example #1
0
 public static void showToast(int msgRes) {
   AppContext appContext = AppContext.getInstance();
   Toast.makeText(appContext, appContext.getResources().getString(msgRes), Toast.LENGTH_LONG)
       .show();
 }
Example #2
0
 public static void showToast(String msg) {
   Toast.makeText(AppContext.getInstance(), msg, Toast.LENGTH_LONG).show();
 }