As the title says I want to add some images from url as icons on custom suggest on search widget. I see on this reference on android.com that I have to use Uri but I don't know how.
Asked
Active
Viewed 291 times
1 Answers
0
You can use this:
Uri.parse("android.resource://" + YOUR_APP_PACKAGE + "/" + resourceId);
E.g.:
Uri.parse("android.resource://com.mycompany.myapp/" + R.drawable.suggest_icon);

Alex
- 141
- 1
- 10