Hi I don't loathe to do it the Resource.Id way it's because unless someone can tell me another way I have to do it this way.
My application will talk to a webservice. It will send data to the phone. One of these pieces of data is the image that I must display to the user(I have 20 or some images). Since these images are not unique to any user and will always be shown to the user it makes sense to store it on the phone. So I do a call and I might get back "my_image" this is the name of the image(my_image.png) Looking at the resource file // aapt resource value: 0x7f020022 public const int my_image = 2130837538; it takes the image name and makes that the variable name and stores the special id number. So if I can do a find on this and get back the actual number. That is why I am using int result = Resources.GetIdentifier("my_image, "drawable",null); The hope was to get back the id then pass it into a ImageView as the source and set it. I am still confused about the packagename but I will have to take a look if I can find it. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/How-to-use-Resources-GetIdentifier-tp4687726p4688000.html Sent from the Mono for Android mailing list archive at Nabble.com. _______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid