I have a class that have a reference to an image. This image can be on a server or among the drawable resources of the app. I need to store the location of either the url or the drawable location of the image file. In order to handle this, I'm using an Uri as attribute of the class.
First of all, is this a right solution? Then, how can I check if the Uri has a reference to the drawable or a reference to an URL? And how can I store the location of the drawable resource in the Uri?