I want to create a transparent Activity on top of another activity.
How can I achieve this?
Using Theme.NoDisplay
will still work… but only on older Android devices. On Android 6.0 and higher, using Theme.NoDisplay without calling finish()
in onCreate() (or, technically, before onResume())
will crash your app. This is why the recommendation is to use Theme.Translucent.NoTitleBar
, which does not suffer from this limitation.”