Code example for SparseIntArray

0
import android.widget.TextView; 
 
public class ChangingListAdapter extends SimpleCursorAdapter {
 
	private TypedArray languages;
	public static SparseIntArray list_lang_state = new SparseIntArray();
 
	public ChangingListAdapter(Context context, int layout, Cursor c,
			String[] from, int[] to, int flags) {
		super(context, layout, c, from, to, flags);
		if (languages == null) {
			languages = context.getResources().obtainTypedArray(
					R.array.list_languages); 
		} 
	} 
 
	/* 
	 * (non-Javadoc) 
	 *  
	 * @see 
	 * android.support.v4.widget.SimpleCursorAdapter#bindView(android.view.View,