I have an activity whose only purpose is to launch an AlertDialog. My issue is that I cannot figure out what to have the activity extend so that the dialog opens on top of whatever the user has open. Currently, it opens a blank layout behind it with extends Activity. Everything else I try fills the activity with errors. Do any of you wonderful internet people know what I can do to make it so that only the alertDialog opens when the activity is triggered?
I have an activity whose only purpose is to launch an AlertDialog. My issue
Share
Try adding an own style. Create (if you don’t yet have it) a file
styles.xmlinres\values\, and add this:Then, in your
AndroidManifest.xml, set this style as theandroid:theme: