📜  java.io.File android.content.Context.getCacheDir() - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:12.284000             🧑  作者: Mango

代码示例1
public class API extends Application {

    public static final String ServerURL = "http://:63424";
    public static final String GET = ServerURL+"/api";
    public static final String POST = ServerURL+"/api";
    protected RequestQueue queue;

    private final API mInstance;

    private API() { }

    public API getInstance() {
        return mInstance;
    }

    @Override
    public void onCreate(){
        super.onCreate();
        mInstance = this;
        queue = Volley.newRequestQueue(this);
    }