Perfect, I read most parts of the search dialog documentation but I have not
seen this very important part for me.

Now it works like I wanted. Thanks a lot! Now I am really happy!

-Danny Schimke

2011/4/22 Nikolay Elenkov <[email protected]>

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

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