3

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.

billiout
  • 695
  • 1
  • 8
  • 22

1 Answers1

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