XML : How do you get the photo name of a picture in drawable?

How do you get the photo name of a picture in drawable? For instance if the photo was test.jpg then I want to get the name "test" from my image viewer.

  ImageView picture = new ImageView(this);  picture.setImageResource(R.id.test);  String hello = picture.getResource.name?    

Any help would be appreciate thanks!

No comments:

Post a Comment