0

I'm a newbie and really would like some help with finding out how to retrieve files from my assets folder within my APK for a live wallpaper. Basically what is the code or what is the correct file path formatting if I wanted to retrieve a file from my assets folder (images).

user2658351
  • 1
  • 1
  • 1

1 Answers1

0

Open the apk with Winrar or anyother zip extracter. Go to res->drawable-??dpi folder. There will be all the images used in the apk.

?? means xhdpi or hdpi or mdpi

Programatically it can be done by this code snippet.

Drawable getImage = Drawable.createFromStream(getAssets().open("Cloths/btn_no.png"), null);
Umer Farooq
  • 7,356
  • 7
  • 42
  • 67