Skip to first unread message

Ron Barak

unread,
Jan 28, 2015, 12:31:25 PM1/28/15
to
I want to use an animated GIF in AI2.
Even though the GIF is animated in the designer, on the emulator the GIF is static.


Is that a limitation of AI2 or of the emulator?

Can
I change something so that AI2 would use animated GIFs?
animated_gif_demo.aia

SteveJG

unread,
Jan 28, 2015, 12:37:21 PM1/28/15
to mitappinv...@googlegroups.com
You can use gifs anywhere in AI2, however the animation only works if you display the animated gif in the WebViewer.

Ron Barak

unread,
Jan 28, 2015, 12:51:44 PM1/28/15
to mitappinv...@googlegroups.com
I've not had a chance to use WebViewer yet. 
Does it means that I need to access the GIF with a URL?
Does it means that only GIFs from the web can be used?
If not, what is the format of the URL accessing a GIF which is loaded into the AI2 app?

Taifun

unread,
Jan 28, 2015, 1:01:38 PM1/28/15
to mitappinv...@googlegroups.com
App Inventor and animated gifs
Taifun

Advice: Before posting, it's a good idea to search in this forum. Many others have likely run into problems similar to yours. How to search see screenshot.

Ron Barak

unread,
Jan 28, 2015, 1:58:54 PM1/28/15
to mitappinv...@googlegroups.com
You're write Taifun: mea culpa.

Searching the forum and reading your App Inventor and animated gifs, I tried accessing the GIF in my AI2 app's assets with the following four variations, none of them work.


Is there a place I can read on the correct URL format for media files loaded to AI2 assets?

Taifun

unread,
Jan 28, 2015, 2:09:50 PM1/28/15
to mitappinv...@googlegroups.com
if you read that page again, you will find a note about the correct path...
and there is also an aia file and apk file available to download...
Taifun

There is one special thing to consider for HTML documents uploaded as assets into App Inventor: During development, you have to use the development path to the embedded HTML document.

file:///mnt/sdcard/AppInventor/assets/ani.gif


Before building the app, use the production path.

file:///android_asset/ani.gif
Reply all
Reply to author
Forward
0 new messages