So I'm displaying an AlertDialog (1), but with it appears a little window that should not be there (2).
This is the xml code for the Activity I'm displaying it from that should avoid displaying anything outside the activity.
The window also appears when I do something like this:
But it never appears when I just call
This is the xml code for the Activity I'm displaying it from that should avoid displaying anything outside the activity.
Code:
<activity android:name="Alarm"
android:theme="@android:style/Theme.Dialog"
android:launchMode="singleInstance"
android:excludeFromRecents="true"
android:taskAffinity="">
</activity>
Code:
Dialog dialog = new Dialog(this );
dialog.setContentView(R.layout.myAlarm);
dialog.setTitle("Custom Dialog");
dialog.show();
Code:
setContentView(R.layout.myAlarm);