I've had this problem in a few different apps now and I can't seem to find a solution.
If, in the onCreate() of an Activity
, I start an activity that uses the dialog theme it doesn't draw anything to screen... the whole screen stays black. All the views are there (e.g., I can tap where an EditText
should be and it'll give me the keyboard), they're just not visible.
Anyone have any ideas?
Stupid simple example, for fun:
public class MainActivity extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
startActivityForResult(new Intent(this, CredentialsInputActivity.class), 1);
}
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
// do some crap with the result, doesn't really matter what
}
}
CredentialsInputActivity
is pretty straight forward... just extends Activity
and has the theme set to @android:style/Theme.Dialog
in the manifest file.