1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
| package com.dayu.recharge.utils;
|
| import android.content.Context;
| import android.widget.Toast;
|
| import com.dayu.recharge.MyApplication;
|
| public class ToastUtil {
|
|
| public static void show(Context context, String data) {
| Toast.makeText(context, data, Toast.LENGTH_LONG).show();
| }
|
| public static void show(String data) {
| Toast.makeText(MyApplication.myApplication, data, Toast.LENGTH_LONG).show();
| }
| }
|
|