How to add strings from alert-dialog box in android?

view story

http://stackoverflow.com – I am working with android. Now i got a problem with it. I created a progrm that will get the strings from user via an alert-dialog box. And add it into the spinner. But it shows some exceptions in logcat. Please any one help me to fix this.Here is my code **MainActivity.java** package com.example.picker; import java.util.ArrayList; import android.app.Activity; import android.app.AlertDialog; import android.content.DialogInterface; import android.os.Bundle; import android.text.Editable; import android.util.Log; import android.view.Menu; import android.view.View; import android.widget.Adapte (HowTos)