On Thu, May 6, 2010 at 10:19 AM, jul <juj...@gmail.com> wrote:

> Hi,
>

Hi


> I'm starting Android doing an application for searching restaurants, and
> some guidance would be welcome!
>

OK!


> -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?
>

A MapActivity is required to use MapView, so you need at least that. You
almost definitely want to break apart your app in separate, logical units
represented by activities, where each is something your app does. Your
search and results list could probably go in one activity, the details could
be another, and the map a third.


> -Would doing one single activity make the application more responsive?
>

No.


>  -How can I use a list and a map within a normal activity
> (without ListActivity and MapActivity)?
>

You can't, again, the MapView requires MapActivity. Though you can probably
put a ListView in a MapActivity with it's MapView, but that would probably
look weird.


> Thank you
>

You're welcome. =)

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to