Why Dont work gif in screen2

Hi.i have 2 screen.I click a button in screen 1 untill go to screen 2(fehrest)and close screen 1.In screen 2(fehrest) there are a gif .If in screen 1
2
gif work in screen 2.but if
1
gif not work in screen 2.
in screen 2(fehrest) and in blocks for gifs
3

memory.aia (1.9 MB)
memory (1).aia (1.9 MB)

Have you got your file path correct?

In companion the path would be file:///mnt/sdcard/AppInventor/assets/ani.gif

To overcome this, use Taifun’s Tools Extension and the pathToAssets block

Hi,Thanks .


i building the App as APK file and use
file:///android_asset/ani.gif
gif work when i dont use from close screen and dont woin belowrk when i use from close screen
in below blocks (in screen 1)and in screen2(fehrest) gif dont work
image
in below blocks (in screen 1)and in screen2(fehrest) gif work
image

Tested in companion and as apk, gif works OK

You do not need a close screen block on screen1

image

I need when go to screen2 ,screen 1 closed.

Screen1 never closes

i want when go to screen 2 ,screen 1 close and there isnot in background .is this wrong??

close.aia (3.7 KB)

Try this (on Screen2):

grafik

See also here:

Screen2 ___________________________________ Screen1

Hi,Thanks.but when click and go to next screen ,gif dont work.
memory total.aia (1.9 MB)

if only complete work that close screen replace from Screen1.

memory no close.aia (1.9 MB)

Which is what I told you to do back in post 3 of this thread :slight_smile:

It should work in both ways. Works without issues on my devices.
Device & Android version?

this project have a problem.when click back button physical of device ,screen 1 in background there is and must multi close them.and this isnot what i want.

i must more close screen 1 that there is in background.

? :pensive:

So what is your test device name and which Android version?

i test my projects in nox player

Ok, try it on a real device.

ok,i will do

with htc desire android 6.0 work but with samsung galaxy grand 2 with android 4.3 dont work.in android studio i select API level but in appinventor ,do i select API level?my device is samsung galaxy grand 2 :pensive:

The Screen2 probably needs a little more time to load the WebViewer.
Try it a timer: Clock.TimerInterval = 500ms