Dear Android Developers: I got an issue that activity can not receive the same intent second time while the app which this activity belongs to launched from another app.
I have an app2 launched from app1. Then in app1, start activity B from the main activity A with startActivity The launch mode of B is "Single top" <activity android:name=".B" android:launchMode="singleTop" android:configChanges="keyboardHidden|orientation"> <intent-filter> <action android:name="android.intent.action.SEARCH" /> </intent-filter> <meta-data android:name="android.app.searchable" android:resource="@xml/searchable"/> <meta-data android:name="android.app.default_searchable" android:value=".B" /> </activity> Then I search in B, first time I search, the onCreate in B is called. Search again, this time B doesn't response the search inetent, no matter onCreate and onNewIntent, they both haven't been called. It seems like B is not at the top of the visiable stack, but I don't know why and how it can be that. How can I do to make B receive the Search intent in second time? Here I can't sdd flag for the search intent and can't change B's launch mode or add paremeters like " android:clearTaskOnLaunch="true" " in manifest. Is there any way to solve this issue? What's the root cause of this issue. Can you please provide me some suggestion? Thanks a lot in advance. -- 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