I use firebird cloud messaging to receive data in the background, then a dialog (new Activity with Theme.AppCompat.Dialog
as style) will appear. My problem is that the surface of the MainActivity is displayed every time in the background. Is it possible to hide MainActivity without terminating it? Someone has perhaps an idea?
When i set in the Manifest at the MainActivity the value
android:noHistory="true"
i looks good, but the notification is then in the app history. this looks bad
I mean when the activity is in Background that the MainActivity is still visible