I use a compatibility package, and I have Fragmentone that returns WebViewin onCreateView. The problem is that the fragment is not added during onCreate Activity, and then when the text field is pressed inside the WebViewon-screen keyboard is not displayed. If the device was rotated after adding a custom web fragment, restoring activity, then the on-screen keyboard appears when you click on the text field.
Just to be clear. Here are two different scenarios.
public void onCreate(Bundle state){
if(state == null){
WebFragment web = new WebFragment();
getSupportFragmentManager.beginTransaction().add(android.R.id.content, web).commit();
}
}
public void onClick(View v){
WebFragment web = new WebFragment();
getSupportFragmentManager.beginTransaction().add(android.R.id.content, web).commit();
}
Activity onCreate WebView, , , . , -, -. - , , , , , .