Need guidance for my first Android application: how many activities should I use?

Posted by jul on Stack Overflow See other posts from Stack Overflow or by jul
Published on 2010-05-06T15:10:55Z Indexed on 2010/05/07 16:38 UTC
Read the original article Hit count: 149

Filed under:
|
|

Hi,

I'm starting Android doing an application for searching restaurants, and some guidance would be welcome! On the first screen I'd like to have a search field with a submit button (I get the data from a web service), and below a list with the results of the search. When clicking on one of the items of the list it will show a screen with the restaurant details as well as a map showing its location. My questions are:

  • Can I do everything in one single activity or should I do an activity for the search, one for the result list, one for the restaurant description, and another for the map?
  • Would doing one single activity make the application more responsive?
  • How can I use a list and a map within a normal activity (without ListActivity and MapActivity)?

Any help, pointer, example application or sample code is very appreciated!

Thank you

Jul

© Stack Overflow or respective owner

Related posts about android

Related posts about Development