android - Search Widget fire ACTION_SEARCH intent twice when user search a word -
i follow android documentation write application search widget.
but found 2 action_search
intents sent searchactivity
. so, doubt fault.
, try google play app. enter keyword search app , still capture 2 intents! here logcat. so, how should handle this? override onnewintent singletop activity, need search twice handle 1 search operation!
04-18 22:26:19.007: i/activitymanager(389): start u0 {act=android.intent.action.search flg=0x10000000 cmp=com.android.vending/.assetbrowseractivity (has extras)} pid 1721 04-18 22:26:19.007: i/activitymanager(389): start u0 {act=android.intent.action.search flg=0x10000000 cmp=com.android.vending/.assetbrowseractivity (has extras)} pid 1721
this bug in emulator when using hardware keyboard.
you can disable hardware keyboard in emulator going settings -> language & input , selecting default.
when using soft keyboard in emulator 1 intent.
Comments
Post a Comment