i am beginner in android programming and English language :) !! i want to get names from user and show the names that user inputs randomly by pressing a button. how can i store a user input names in a array list? and As regards I don't know how many names he wants to enter and don't show a name twice and after showing the name erase that name in array list. tanks a LOT.
package farshid.mk.teststringarraylist;
import java.util.ArrayList;
import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
public class StringArraylistActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
final ArrayList<String> inputs = new ArrayList<String>();