I'm trying to find out what the name of the element which asks you to choose which application to open a file in. This is on Android OS.
Does anyone know the name?
It depends on whether it makes sense to let the user choose a default or not.
If yes, then you're looking for a disambiguation dialog. In newer Android versions, it's a bottom sheet rather than a dialog:
If, on the other hand, you want the user to choose the app every time (such as with a custom share dialog), you would use an app chooser, which looks like this:
Note the lack of "Just once" and "Always" buttons in this dialog.
See the developer documentation for more details.
According to the developers' information from Android it is an App Chooser.
@Mike answered with a good name which is "App Chooser." This is the name used by the guidelines.
@Tin Man answered:
"It depends on whether it makes sense to let the user choose a default or not.
If yes, then you're looking for a disambiguation dialog. In newer Android versions, it's a bottom sheet rather than a dialog:" "Note the lack of "Just once" and "Always" buttons in this dialog."
It has nothing to do with the default setting selection part of the dialog. There's nothing in the guidelines that says that.
The guidelines clearly, and literally, do not call the default question component of the dialog UI a disambiguation dialog. They say the entire process is "sometimes referred to" as a disambiguation dialog. Dialog is a process, not a UI component or part of one.
Here is your disambiguation reference:
Here is the good part of the reference that follows:
I highlighted all the times they call it an App Chooser. I also highlighted where they refer to the default question.
In the guidelines where you got your term, they literally describe the part of the dialog where users say it's a default as "nice." You are stating that it is the key component that defines it as disambiguation.
Disambiguation is deep in programming. Programming runs on words. Disambiguation is what programming languages do to programming code. Their use and meaning is like equations in math. So issues of terminology are very different.