Display in a toast array list
<p>How do i display my array list in a toast..
This is the code i have, but it's not displaying the full items in the array..what is my problem?</p>

<pre><code>public static  EditText txt1;
String ag;
public static ArrayList&lt;String&gt; playerList = new ArrayList&lt;String&gt;();
String playerlist[];

/** Called when the activity is first created. 
 * @param Public */
public void onCreate(Bundle savedInstanceState, Object Public) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.screen2);

    // edittext1 or textview1
    txt1 = (EditText) findViewById(R.id.editText1);
    ag = txt1.getText().toString();

    //add more items button
    Button more = (Button) findViewById(R.id.button1);
    more.setOnClickListener(new View.OnClickListener() {
        public void onClick(View view) {
            if (txt1.getText().length() != 0) {
                String ag = "Current Added Players:," + txt1.getText().toString() + txt1.getText().toString();
                playerList.add(ag);
                Toast.makeText(getBaseContext(), ag, Toast.LENGTH_SHORT).show();

                Intent myIntent = new Intent(view.getContext(), Screen2.class);
                myIntent.putExtra("Stringarray", playerList);
                //startActivityForResult(myIntent, 0);
            }
        }
    });
}
</code></pre>
