开发者

Why is Context used in this piece of code?

开发者 https://www.devze.com 2023-01-05 15:54 出处:网络
public class ImageAdapter extends 开发者_如何学CBaseAdapter { private Context mContext; public ImageAdapter(Context c) {
public class ImageAdapter extends 开发者_如何学CBaseAdapter {
    private Context mContext;

    public ImageAdapter(Context c) {
        mContext = c;
    }

Here in this code,what does this Context means and what is the purpose of using this?


Context is an abstract Class that is used to access system resources like the network connection, or the file system or a database. In this case I would asume that the context is saved in the Adapter to load Images later in the progress.

0

精彩评论

暂无评论...
验证码 换一张
取 消