Code example for SparseIntArray

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(
	 * (non-Javadoc) 
	 * @see 
Connect your IDE to all the code out there  Get Codota for Java