Code example for Activity

Methods: getSystemService, getResources

0
	    this.collection = new GCAccountMediaCollection();
	} else { 
	    this.collection = collection;
	} 
	this.context = context;
	inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
	loader = ImageLoader.getLoader(context);
	displayMetrics = context.getResources().getDisplayMetrics();
	tick = new HashMap<Integer, GCAccountMediaModel>();
    } 
 
    @Override 
    public int getCount() { 
	return collection.size();
    } 
 
    @Override 
    public GCAccountMediaModel getItem(final int position) {
	return collection.get(position);
    }