I have a subclass of AlertDialog that should display a list of all the available Wifi networks in range.
I want that the dialog itself will be responsible for initiating Wifi scan and receiving the results.
For this reason I cannot use the AlertDialog.Builder to set the ListView items, because at the moment of creating the dialog I don't have them yet, and they might change during presentation.
So what I'm asking is how can I use the built-in support for AlertDialog to present a single choice list, without the AlertDialog.Builder?
If it is impossible, how do I create my own ListView and set it as the content view for the dialog?