Global search box extension - how to make browser to start when suggestion picked.

Posted by Ramps on Stack Overflow See other posts from Stack Overflow or by Ramps
Published on 2010-03-04T13:14:36Z Indexed on 2010/03/14 8:25 UTC
Read the original article Hit count: 230

Filed under:

Hi,
I'm implementing global search box extension (sth like SearchableDictionary sample in android sdk). Everything works fine - suggestions are displayed properly. Problem is that I want browser to start when user picks a suggestion. (each suggestion is a link)

Columns of my cursor contain SearchManager.SUGGEST_COLUMN_INTENT_DATA, and I use that to pass http link. My searchable xml contains default intent action set to: android:searchSuggestIntentAction="android.intent.action.VIEW". But when user hits the suggestion, my application is started instead of browser. What am I missing?
Regards!

© Stack Overflow or respective owner

Related posts about android