Android ImageView set non int ID

view story

http://stackoverflow.com – Is it possible to set ImageViews id with a String? I'm adding ImageViews programmatically and i want to set the ID the something like "IMG12a" ImageView image = new ImageView(this); RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(100, 100); params.leftMargin = X; params.topMargin = Y; image.setLayoutParams(params); image.setScaleType(ImageView.ScaleType.CENTER_CROP); image.setImageResource(IMG); image.setId(?????); theLayout.addView(image); (HowTos)