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.

http://books.google.com/books?id=ofxjxbcxjtgc&pg=pt771&lpg=pt771&dq=android+search+intent+sent+twice+bug&source=bl&ots=ora1ajjh4a&sig=9yfbjcwj1arbxephzcpypg_qdfq&hl=en&sa=x&ei=bbddupbzccli4aoiiociaw&ved=0cd8q6aewaw#v=onepage&q=android%20search%20intent%20sent%20twice%20bug&f=false

you can disable hardware keyboard in emulator going settings -> language & input , selecting default.

when using soft keyboard in emulator 1 intent.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -