Close current screen and open a new one


#1

Hello Appy builder developers,
I would to ask your help regarding the closing of current screen and the opening of a new one.
I have an app with 11 screens and everytime that i open a new screen then i would to close the current one. I am using the following blocks in order to do this, but seems is not working:

example

do you know if this method works? I am having the out of memory error:

java.lang.OutOfMemoryError:
at dalvik.system.VMRuntime.newNonMovableArray (Native Method)
at android.graphics.Bitmap.nativeCreate (Native Method)
at android.graphics.Bitmap.createBitmap (Bitmap.java:946)
at android.graphics.Bitmap.createBitmap (Bitmap.java:917)
at android.graphics.Bitmap.createBitmap (Bitmap.java:848)
at android.graphics.Bitmap.createScaledBitmap (Bitmap.java:724)
at com.google.appinventor.components.runtime.util.MediaUtil$2.run (MediaUtil.java:514)
at java.lang.Thread.run (Thread.java:818)


#2

Make your images smaller.

/Boban


#3

see also tip 2 here


Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.


#4

Thanks, reducing the image size now is not crashig.
I lost sonething in grapich, but it is important that the app does not crash.

Thanks again.
Br.