8

HowTo prevent Views from changing during rotation

view full story
linux-howto

http://stackoverflow.com – I've written a simple application which has a TextView which, when clicked, changes into an EditText. import android.app.Activity; import android.content.Context; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.EditText; import android.widget.LinearLayout; import android.widget.TextView; public class Main extends Activity { static Context context; protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); context = this; LinearLayout lL = new LinearLayout(this); (HowTos)