How to make a small window like Dialog in the middle of the Android screen, on top of all windows. Suppose when a text message comes in, Tipo USSD Dialog appears in the middle

enter image description here

  • And what exactly the dialogue does not suit? - Android Android
  • The dialog in the activation itself is displayed, but I need to allow the application to be closed or minimized and the Dialog appeared on top of the screen - Andro
  • That is, in theory, you should have a certain BroadcastReceiver that listens to a certain event. In it, the dialogue call sobsna. - Android Android

1 answer 1

Install the theme in the manifest for this activation. Record type: android: theme = "@ style / Base.Theme.AppCompat.Dialog"

HERE picture

  • And how to remove ActionBar from the dialogue? - Andro
  • as if he should not have ActionBar'a. - MediaPortal
  • But it is .... - Andro
  • <style name = "DialogNotification" parent = "Base.Theme.AppCompat.Light.Dialog"> <item name = "android: windowNoTitle"> true </ item> <item name = "windowActionBar"> false </ item> < / style> It does not help - Andro
  • Threw the picture, see at the top of the Title can be seen. - Andro