Skip to content
Advertisement

Dialog Activity has a layout on the background

I am trying to make a dialog activity when the notification is clicked but I encountered some trouble.

enter image description here

as you can see, the dialog is opened after clicking the notification but the black background is not necessary, how could I remove this ? I wanted to do is just pop.out the dialog box on the application before resuming to the the background activity. Thanks.

Here is my code for the manifest.

JavaScript

The layout file is totally empty and the code for the dialog is as follows.

JavaScript

Advertisement

Answer

Remove this line from your code

JavaScript

It will not set that background layout

Add DialogMEssage.this.finish(); in onClick like this

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement