Hi there, I'm trying to display a custom icon next to each result in the search box. It's an image file at in the app's data - in this case at:
/data/data/uk.ac.nott.cs.rxb06u.Prediction.AndroidUI/files/ __cache_b3e4775cfbd30cd1e8fd7ad379ff9f04.jpg I'm building a URI like this: String uri = new Uri.Builder() .scheme(ContentResolver.SCHEME_FILE) .encodedPath(img) // where image is the path I mentioned before .toString(); But I get this error in the logs: W/SuggestionsAdapter( 74): Icon not found: file:/data/data/ uk.ac.nott.cs.rxb06u.Prediction.AndroidUI/files/ __cache_b3e4775cfbd30cd1e8fd7ad379ff9f04.jpg, /data/data/ uk.ac.nott.cs.rxb06u.Prediction.AndroidUI/files/ __cache_b3e4775cfbd30cd1e8fd7ad379ff9f04.jpg I know this file exists - I can open it elsewhere e.g. by BitmapFactory.decodeFile(img) Any ideas? docs/examples seem to be rare on the ground for doing this - trawled google extensively looking for results! Thanks all, Rik. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en