android - Error while loading gif image source -


i tried executing following line load gif image, programatically. gifinputstream = context.getresources().openrawresource(r.drawable.image); but, studio used indicate error near "r.drawable.image".

i found solution, or rather hack around issue. added "+" symbol. so, line looks now... gifinputstream = context.getresources().openrawresource(+r.drawable.image);

androidstudio doesn't show error now.


Comments

Popular posts from this blog

javascript - WinJS appendTextAsync producing scheduler errors -

minify - Minimizing css files -

Sockets with kotlin -