I have problems with the on-screen keyboard. I have an action with EditText
that shows a keyboard and a button to go to the second lesson. The second action shows the ProgressDialog
on its onCreate()
, does things, and rejects the ProgressDialog
. The problem is that when the ProgressDialog
displayed, the same thing happens with the keyboard.
I would like the keyboard to disappear before creating the ProgressDialog
. I have carefully searched for Kara and other sites, but nothing seems to work with this particular scenario.
I am attaching two photos for reference:
This is the code for the first action:
public class FirstActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); findViewById(R.id.button1).setOnClickListener(new OnClickListener() { @Override public void onClick(View arg0) { Intent intent = new Intent(FirstActivity.this, SecondActivity.class); startActivity(intent); } }); } }
and this is the second action code:
public class SecondActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.second);
thanks
source share