How do I get a Uri to an image in my Assets that will work for the SearchManager.SUGGEST_COLUMN_ICON_1 column?

前端 未结 4 1100
臣服心动
臣服心动 2020-12-18 04:01

I have successfully integrated my app\'s country search into the global search facility and now I am trying to display each country\'s flag next to the search suggestions.

4条回答
  •  一整个雨季
    2020-12-18 04:54

    I was able to refer images from drawable in SearchRecentSuggestionsProvider using following uri,

    "android.resource://your.package.here/drawable/image_name
    

提交回复
热议问题