A very strange behaviour, while writing code for showing GIF image in image-view.
what i am doing is 

```
 InputStream is = this.getResources().openRawResource(R.drawable.logo);

```

logo is gif image that is in the drawable folder.

**when I write that line of code in Eclipse , image loads successfully but when I import that code on Android Studio What I am seeing is an error on R.drawable.logo**

and the error is 

**Expected Resource of type raw**
**supplying the wrong type of resource identifier. For Example when calling Resources.getString(int id), You should be passing R.string.something not R.drawable.something**

one code runs on Eclipse not on Android Studio

I am sure that no problem with the imports.