Code examples for SparseArray

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
50:	private final SparseArray<IssueFragment> fragments = new SparseArray<IssueFragment>(); 
Full Snippet Info
7
CodeRank
183:	SparseArray<Parcelable> viewStates = new SparseArray<Parcelable>(); 
-
185:	((View) mMenuView).saveHierarchyState(viewStates); 
Full Snippet Info
7
CodeRank
17:	mDtNames = new SparseArray<String>(); 
18:	mDtNames.put(1, "TV ?"); 
19:	mDtNames.put(2, "Cablebox ?"); 
20:	mDtNames.put(3, "Tuner / Hifi ?"); 
21:	mDtNames.put(4, "BD Player ?"); 
22:	mDtNames.put(5, "? ?"); 
Full Snippet Info
7
CodeRank
87:	return mKeyMapping.get(keyCode) != null; 
Full Snippet Info
7
CodeRank
452:	mScrapHeap.put(position, v); 
-
457:	View result = mScrapHeap.get(position); 
-
460:	mScrapHeap.delete(position); 
Full Snippet Info
7
CodeRank
159:	int index = mAlarms.indexOfValue(alarm); 
-
161:	mAlarms.delete(mAlarms.keyAt(index)); 
-
165:	if (mAlarms.size() == 0) { 
Full Snippet Info
7
CodeRank
116:	intent = mShortcutIntents.get(shortcut); 
-
123:	intent = mShortcutIntents.get(shortcut); 
Full Snippet Info
7
CodeRank
246:	ShortcutPreference pref = mShortcutToPreference.get(shortcut); 
-
258:	mShortcutToPreference.put(shortcut, pref); 
Full Snippet Info
7
CodeRank
132:	apis.add(channels.get(id.FUNY)); 
133:	apis.add(channels.get(id.KICHIKU)); 
134:	apis.add(channels.get(id.PET)); 
135:	apis.add(channels.get(id.EAT)); 
136:	apis.add(channels.get(id.SCIENCE)); 
137:	apis.add(channels.get(id.SPORT)); 
Full Snippet Info
7
CodeRank
36:	uids = new SparseArray<E>(2); 
-
39:	uids.put(uid, value); 
Full Snippet Info
7
CodeRank
157:	int index = mAlarms.indexOfValue(alarm); 
-
159:	mAlarms.delete(mAlarms.keyAt(index)); 
-
163:	if (mAlarms.size() == 0) { 
Full Snippet Info
7
CodeRank
47:	= new SparseArray<HashMap<int[], Entry>>(); 
Full Snippet Info
7
CodeRank
24:	private static final SparseArray<Class<? extends Model>> TYPE_CODES = new SparseArray<Class<? extends Model>>(); 
Full Snippet Info
7
CodeRank
21:	final static SparseArray<String> mDensities = new SparseArray<String>(); 
Full Snippet Info
7
CodeRank