Android: How to do a dialog for narrowing a selection
<p>Suppose I want the user to specify his location by selecting a continent from a list, then a country on that continent from a new list, then a state, a city and so on. How would I go about that?</p>

<p>The only way I can think of is to start a new <code>Activity</code> everytime the user makes a selection. This has two drawbacks however:</p>

<ol>
<li><p>I would have to know the nesting depth of possible selections in advance. I would prefer this to be data driven, such that when there is more data to narrow down the selection, this should be presented to the user. For example, some citys may have quarters to be selected, others not. Or can I just recursively recycle the same <code>Activity</code>?</p></li>
<li><p>Once the user made his selection, I want him to be able to go back to where he startet, not have him go through his selection backwards. I guess I could manipulate the back button somehow, but I'd rather not.</p></li>
</ol>

<p>Is there a more elegant way for such a dialog then what I've just described? Maybe even an element meant exactely for this?</p>

<p>Note that I'm not interestet in GPS or other location techniques, the continent/city thing is just an example for the kind of dialog I want.</p>