I have an edittext with a field for movie name in my second activity. Sometimes the user will come into this activity and it will be empty, and the user should put in the name they want of the movie. In this case I want the virtual keyboard to automatically come up (which it does). However, sometimes the user enters this activity and the movie name is already in the edittext. In this case I want the virtual keyboard to not automatically come up. I have tried doing this, with an if condition that its not empty:
etMovieTitle.clearFocus();
linearLayout.requestFocus();
but it doesn't seem to work.
Thank you