// Create a new file: NetWorkManager.java
package cn.waterpolo.network;

import android.content.Context;

public class NetWorkManager {
    private static NetWork instance;

    // 使用Context来初始化，因为NetWork需要它
    public static synchronized NetWork getInstance(Context context) {
        if (instance == null) {
            // 传入ApplicationContext防止内存泄漏
            instance = new NetWork(context.getApplicationContext());
        }
        return instance;
    }
}