On Fri, Apr 22, 2011 at 5:14 PM, Danny S. <[email protected]> wrote:
> Hi Spiral,
>
> with search dialog I mean the search bar that came up at the top of
> the current activity if it is searchable when the user hits the device
> search button. The user hits this button then onSearchRequested() of
> my map activity will be called. I use startSearch(). Don't forget, the
> map activity is "searchable" so it is instantiated new and onCreate()
> will be called. But this is not the same activity where the search was
> requestet, its a new instance.

Make your map activity singleTop.

http://developer.android.com/guide/topics/search/search-dialog.html#LifeCycle

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

Reply via email to