tags:

views:

517

answers:

2

I’m new to development, specifically Android. Through tutorials, I’ve managed to display a map with a marker for a building that displays a “toast” box with text identifying that building, when tapped (I fashioned it after the “Noo Yawk” example). I need to display a new full screen with a photo of that building and text describing it, and use the back button to return to the map. I need to do this for at least 30 buildings.

Do I need to start a new activity for each building? It would seem complicated and resource intensive. If so, where will the photo and text reside? Do I need to have a button in the layout to call the map again? Or is there a simpler way to do this? Given the number of buildings, will content management or a database be required?

Thanks in advance and forgive my ignorance. I’ve parsed so many articles and tutorials that I’m becoming confused.

+1  A: 

I would just show Dialog with ImageView (photo), TextView (information) and Button (to close Dialog).

Android dialog Screen Example

I think it would be better to keep photo and info inside database and pass them into Dialog before show.

Max Gontar
A: 

That works (I haven't done a database yet) and thank you.

Brian