I have a .gif file inside the assets folder like this assets/Files/android.gif. when I try to open the file it throws an exception at the second line
AssetM
I believe the preferred way to do this is to put your image in the res/drawable directory. Then you can get a Drawable like this:
Drawable d = Resources.getSystem().getDrawable(R.drawable.android);