• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Problems with onClickListen and keyboard input

Here are my files:

main.xml
settings.xml

Main contains a few buttons for info and what not. One of the buttons is called settings. It uses setContentView to change to settings.xml. Settings.xml contains two text input areas and a confirm button. Here is where the problems start. After I press confirm, my virtual keyboard does not go away. I have to press the back button on my phone. Also, when the confirm button is pressed, the two variables are saved in my script for future use. Then it uses setContentView again to switch back to main.xml. But now all of my buttons in main do not work. As if all of the setOnClickListener's were removed.


What's wrong here.

Here is my script: package com.ccstudio.SpyCam; import android.app.A


Please inform me of any errors you see, I am new to Java and the Android SDK...
 
Back
Top Bottom