Commit changes to Group View even after Activity Reload
<p>I have a method to add items to a <code>Group View</code>:</p>

<pre><code>void addItem(String name,String quantity,String value,ViewGroup view_group,int index)
    {
        LayoutInflater layoutInflater = (LayoutInflater)myAct.getApplicationContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);

        LinearLayout itemLayout = (LinearLayout) layoutInflater.inflate(R.layout.request_object_list, null);

        ((TextView)itemLayout.findViewById(R.id.object_name)).setText(name);

        ((TextView)itemLayout.findViewById(R.id.object_quantity)).setText(quantity);

        ImageButton botaoAdd = ((ImageButton)itemLayout.findViewById(R.id.addButton));
        ImageButton botaoSubtract = ((ImageButton)itemLayout.findViewById(R.id.subtractButton));

        buttons.put(botaoAdd, ((TextView)itemLayout.findViewById(R.id.object_quantity)));
        buttons.put(botaoSubtract, ((TextView)itemLayout.findViewById(R.id.object_quantity)));

        botaoAdd.setOnClickListener(new OnClickListener() {

            @Override
            public void onClick(View arg0) {

                ImageButton botao = (ImageButton)arg0;

                TextView textView = buttons.get(botao);

                Integer quantidade = Integer.parseInt(textView.getText().toString());

                quantidade++;

                textView.setText(quantidade.toString());
            }
        });

        botaoSubtract.setOnClickListener(new OnClickListener() {

            @Override
            public void onClick(View arg0) {

                ImageButton botao = (ImageButton)arg0;

                TextView textView = buttons.get(botao);

                Integer quantidade = Integer.parseInt(textView.getText().toString());

                if(quantidade != 1)
                    quantidade--;

                textView.setText(quantidade.toString());
            }
        });

        ((TextView)itemLayout.findViewById(R.id.object_value)).setText(value);
        (itemLayout.findViewById(R.id.select_check)).setVisibility(View.VISIBLE);
        (itemLayout.findViewById(R.id.select_check)).setId(index);

        view_group.addView(itemLayout);
    }
</code></pre>

<p>As you can see I have 2 buttons which can make modifications to their respective items on the <code>Group View</code>. Although After reloading the <code>Activity</code>, the items of the Group View are exactly with the same values from when they were initially added. How can I commit the changes?</p>
