Loading animation from URL (Android)

Hello. I can not find any method to load animation from URL in Android.

Yes there is a way in XML statically.

But is there a way to do it in code?