开发者

Why is Context used in this piece of code?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜