hi,all.I use  the startsearch() method in the class Test and when it was
executed ,first it will switch the search UI and need to input some words
,then when click the search button it will still jump to the class Test.Now
the question is what can I do to let the class Test don't create a new
instance.can I let it execute the Overrided method onNewIntent()?
The part of *AndroidManifest.xml* file is as follwing.

<activity android:name=".Test"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>

            <intent-filter>
                <action android:name="android.intent.action.SEARCH" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
            <meta-data android:name="android.app.default_searchable"
                       android:value=".Test" />
            <meta-data android:name="android.app.searchable"
                       android:resource="@xml/searchable" />
        </activity>

    thanks

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