1. Download our Official Android App: Forums for Android!

SearchManager not calling onNewInstance when invoked from activity in a TabHost

Discussion in 'Off Topic' started by DrLou, Jul 27, 2010.

  1. DrLou

    DrLou Lurker
    Thread Starter
    Rank:
    None
    Points:
    25
    Posts:
    3
    Joined:
    Jul 27, 2010

    Jul 27, 2010
    3
    0
    25
    Software engineer
    Mountain View, CA
    Hi, Folks.

    The documentation for the SearchManager says it will send an intent with the search string the user entered to the activity from which it was invoked. If that activity has set launchMode="singleTop" in the manifest, the intent will come in through the onNewIntent callback.

    I have been unable to get this behavior when the activity was started by a TabHost. Instead of calling onNewIntent, the activity's onCreate method is called, resulting in a new instance of the activity on top of the activity stack.

    Has anyone else had this problem? If so, have they found a solution?

    Thanks and regards,

    --Lou
     

    Advertisement

  2. Steven58

    Steven58 Reformed PH
    Rank:
     #4
    Points:
    3,933
    Posts:
    32,959
    Joined:
    Feb 19, 2010

    Feb 19, 2010
    32,959
    25,351
    3,933
    Male
    Uh... welcome to android forums? this is the wrong forum to post this query. i'm going to move this to the lounge. if there's a better place, feel free to move it there, guys.
     
    DrLou likes this.
  3. DrLou

    DrLou Lurker
    Thread Starter
    Rank:
    None
    Points:
    25
    Posts:
    3
    Joined:
    Jul 27, 2010

    Jul 27, 2010
    3
    0
    25
    Software engineer
    Mountain View, CA
    I am very new to forums. What is the best forum for a question like mine, and how do I get it there?
     

Share This Page

Loading...