Updating values to Hash-table?
<p>I have some problem in updating the values to hash-table,here is my problem i will explain it clearly.</p>

<p>1.I have getting the response from server,i am adding the values to layout,by using layout Layout-Inflater.
2.in our application we have streaming request.when the streaming request is turned on the values need to be updated regularly.</p>

<p>storing values in hash-tables</p>

<pre><code>Hashtable&lt;String, View&gt; indicesHashtable = new Hashtable&lt;String, View&gt;();
</code></pre>

<p>For(Step 1)code i have written belowthe code.</p>

<pre><code>private void addIndices(LinearLayout parent, final String key,final String value) {

        LayoutInflater factory = LayoutInflater.from(mContext);
        final View row = factory.inflate(R.layout.indices_values, null);
        final TextView keyTextView = (TextView) row.findViewById(R.id.txtCompany);
        final TextView valueTextView = (TextView) row.findViewById(R.id.txtIndex);
        final Button iconImageView = (Button) row.findViewById(R.id.btnIcon);

        row.setBackgroundResource(android.R.drawable.list_selector_background);

        if (value.length() &gt; 0) {
            keyTextView.setText(Html.fromHtml("&lt;b&gt;"+indices.get(key)+"&lt;/b&gt;"));
            valueTextView.setText(Html.fromHtml(value));

            if(quoteArrowIconId != -1)
                iconImageView.setBackgroundResource(quoteArrowIconId);
            else
                iconImageView.setBackgroundDrawable(null);
        }else{
            keyTextView.setText(Html.fromHtml(key));
        }

        indicesHashtable.put(key, row);
        parent.addView(row);
    }
</code></pre>

<p>For(Step 2)i need help from you guys.</p>

<p>i have written code..that i have shown below.</p>

<pre><code>private void handleResponseOfResponses(ResponseParser response) {

        Hashtable responses = (Hashtable) response.getValue(Response_890.RESPONSES);

        String[] symbols = new String[responses.size()];
        int index = 0;
        indicesHashtable.clear();
        for(int i =indicesSymbols.length-1; i &gt;= 0; i--){

            Enumeration e = responses.keys();


            while (e.hasMoreElements()) {

                ResponseParser subResponse = (ResponseParser) responses.get(e.nextElement());
                if (subResponse.getResponseCode() == ResponseCodes.QUOTES_RESPONSE) {

                    String[] quoteProperties = (String[]) subResponse.getValue(Response_312.QUOTES_KEY);

                    if(quoteProperties[0].equalsIgnoreCase(indicesSymbols[i])){

//                      symbolTable.put(quoteProperties[0].toUpperCase(), index);
                        symbols[index++] = quoteProperties[0];

                        String value = quoteValue(quoteProperties);
For displaying the  values coming for response i have added (AddIndices)method
                        addIndices(linear_Indices, quoteProperties[0], value);

                    }
                }               
            }   
        }
        autoscroll();
        indicesStreamerClient =  new StreamerClient(indicesSymbols){

            @Override
            public void onStreamDataReceived(QuoteData quoteData) {

                System.out.println("onStreamDataReceived () -&gt; "+quoteData.getSymbol());
                HERE I NEED TO ADDED ANOTHER METHOD FOR UPDATING THE VALUES..HOW I CAN WRITE THE CODE.
            };
        };

        Streamer.getInstance(mContext).registerStramerClient(indicesStreamerClient);
    }
</code></pre>

<p>Guys i am fresher as well as new to andriod.</p>

<p>Thanks in advance!!!!!!</p>
