making a interfaceable window
<p>I have created a list activity. I want that when i click on one of the elements in the list that a window pops up with multiple variables that i can change. When i finish i want those variables to be applied to a custom square object that corresponds to the list item i clicked on.
Here is my code so far</p>

<pre><code>            public class List_Activity extends ListActivity{
                String[] names ; 
                Square[] squares ;
                @Override
                public void onCreate(Bundle bundle){
                    super.onCreate(bundle);
                    for(int i =0; i &lt; squares.length; i ++){
                        names[i] = "Row " + i + " " + squares[i].wait;
                        //be able to change this text to the color defined in the square object
                    }
                    setListAdapter(new ArrayAdapter&lt;String&gt;(this, android.R.layout.simple_list_item_1,names) );
                }

                @Override
                protected void onListItemClick(ListView l, View v, int position, long id) {
                    // when a list item is clicked on a window will pop up 
                    //allowing to toggle multiple variables including color either red green or blue
                    //an integer value
                    // and a  boolean

                }



            }
</code></pre>

<p>any ideas would be helpful. I tried a popup window but i didn't know how to use it or if it was the right class to use</p>
