Code example for SparseArray

Methods: valueAt

0
		this.serverUrl = settings.getString(Parameters.SERVER_URL.name(), null)
				+ "/" + RemoteAction.WISSL_ENTRY_POINT; 
	} 
 
	public Bitmap getArtwork(int albumId) {
		return this.artworkCache.valueAt(albumId);
	} 
 
	public void showArtwork(int albumId, ImageView view) {
		Bitmap artwork = this.getArtwork(albumId);
 
		if (artwork == null) {
			artwork = this.loadArtworkFromFileCache(albumId);
		} 
 
		if (artwork == null) {
			artwork = this.loadArtworkFormStream(albumId);
		} 
 
		if (artwork != null) {
			this.artworkCache.append(albumId, artwork);