On Mon, Dec 7, 2015 at 12:10 AM, Asa Ban <[email protected]> wrote:
> does this (getItentifier) method grantees that the respective image > resource id (that suits the screen size of the device that runs this > application) gets retrieved? Resource ID is not a qualified value. There is one ID for a given resource and the system determines what that maps to based on the device configuration when that resource is requested via that ID. So when you do res.getIdentifier(...), you will always get back one value for a given resource. Then when you do res.getDrawable(id), you will get the correct resource based on the device. ------------------------------------------------------------------------------------------------- TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/CANCScgh-ra3DOVg6dH%3D5w7OtmWs74hHnEw__zWVhQ8WzKxdRxQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

