Code example for LruCache

Methods: put

0
            JSONObject act = new JSONObject(m_cursor.getString(0));
            JSONObject obj = act.optJSONObject("object");
            if(obj != null) {
                String id = obj.optString("id");
                if(id != null) {
                    m_objectPositions.put(id, position);
                } 
            } 
 
            act.put("_replies", m_cursor.getInt(1));
            act.put("_likes",   m_cursor.getInt(2));
            act.put("_shares",  m_cursor.getInt(3));
 
            return act;
        } catch(JSONException e) {
            throw new RuntimeException(e);
        } 
	} 
 
	private static String getImage(JSONObject obj) {
Connect your IDE to all the code out there  Get Codota for Java