[UPDATE] -- Just wanted to confirm to everyone that I agree it's ALWAYS a bad idea to use a hard coded number. My curiousity was when using the Maps API what is the 1, 2 constant value enumerated to. I would have felt more comfortable if I found something like R.id.my_current_location_view.
I see that code littered in this question and other questions. How do people know to use findViewById(1) etc? vs. findViewById(R.id.something);
Change position of Google Maps API's "My location" button
There seems to be some deep confusion in this question. I am wondering what the magic numbers findViewById(1) is.. If you click on the link you will see that no one has supplied the setId(1) value to the mapView but somehow people know to check the parent View and then findViewById(1) and findViewById(2)..
I asked the question there as well so the context wouldn't be lost but it seems no one can explain this.