http://stackoverflow.com – Whenever i click on Submit button, i m automatically moved to the previous page. I m not able to figure out the problem. The first button works well and also able to see the output in the first textview but problem arises when i click on second button. public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.sconverter); Spinner s1 = (Spinner) findViewById(R.id.spinner1); Spinner s2 = (Spinner) findViewById(R.id.spinner2); ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource( th (HowTos)