0

How can I change icon in android app. located at custom location. for example: I created new package in drawable i.e drawable/pre_paid_ico , But I can't access any icon from this location in programmatically way. here is my code

        iconView = (ImageView) findViewById(R.id.icon);
    int imageId = getResources().getIdentifier(array_ico[0], //icon name from array e.g[bg_icon]
            "drawable/pre_paid_ico",//location of icons
            "package.name.here");  //package Name
    iconView.setImageResource(imageId);
Ashish
  • 997
  • 6
  • 20
  • Possible duplicate of [How to change an application icon programmatically in Android?](http://stackoverflow.com/questions/1103027/how-to-change-an-application-icon-programmatically-in-android) – Kristo Jan 27 '16 at 08:05
  • In referred link its change icon of app but in my case its for just IMAGE VIEW – Ashish Jan 27 '16 at 08:43
  • THEN CHANGE YOUR TITLE! – Kristo Jan 27 '16 at 08:47

0 Answers0