Konj

unread,
Nov 14, 2014, 2:04:00 PM11/14/14
to mitappinv...@googlegroups.com
Hello, I've made a simple app but it shows blank screen when i download it on a phone, and after few seconds an error shows up and the app crushes. I've already make two apps and this never happen to me. I've deleted everything in "blocks" option and still there is a blank screen. This picture might help.http://prntscr.com/56ch84. If you know whats wrong please answer.

Thanks in advance

Abraham Getzler

unread,
Nov 14, 2014, 3:01:54 PM11/14/14
to mitappinv...@googlegroups.com
I see a bunch of vertical arrangements, which I assume you
are making visible only one at a time, to save on inter-screen logic.

Is screen1 unscrollable at packaging time?

Is only your initial vertical arrangement visible 
at packaging time?

ABG



Konj

unread,
Nov 14, 2014, 3:30:47 PM11/14/14
to mitappinv...@googlegroups.com
Yes, only one vertical arrangement is visible, and the scrollable option is on and only the initial vertical arrangement is visible. Basically, the app is about my city. There will be 3-4 seperated options. History ones, modern city, hotels, restaurants, etc. So in every of these options there will be aprox. 10-14 in each of them, so i need like 60 vert. arr. if there are 4 options. For example different hotels in a city, each hotel each vertical arrangement.

Taifun

unread,
Nov 14, 2014, 3:40:10 PM11/14/14
to mitappinv...@googlegroups.com
So in every of these options there will be aprox. 10-14 in each of them, so i need like 60 vert. arr. if there are 4 options

let me recommend to create one template for each option, i.e. 4 vertical screen arrangements with image, label, button etc what you need. Then store the data in lists and replace the information inside programmatically for each item to display

Taifun

Trying to push the limits of App Inventor! Snippets and Tutorials from Pura Vida Apps by Taifun.         

Konj

unread,
Nov 14, 2014, 3:49:34 PM11/14/14
to mitappinv...@googlegroups.com
So you think the number of arrangements is the problem and i should just make one for one option and put "if - button click - image picture to" and same with label "label text to" so it will change the image and text as i write on blocks? And do you think that i can put around 80-100 pictures that are aprox. 60kb size = 4.8mb - 6mb?

Taifun

unread,
Nov 14, 2014, 4:00:12 PM11/14/14
to mitappinv...@googlegroups.com
yes, you should avoid redundancy
and concerning the pictures, there is a limit of 5 MB for App Inventor apps
there are these workarounds: https://puravidaapps.com/filebyfile.php
see especially Hossein's workaround
Taifun

Konj

unread,
Nov 14, 2014, 4:11:18 PM11/14/14
to mitappinv...@googlegroups.com
Thank you a lot, can you view these pictures and if you could just tell me if I'm doing this good. In the first picture you can see buttons http://prntscr.com/56e2kh. And in the second you can see how you told me to avoid making arrangements http://prntscr.com/56e28j. Ill try to do the same with buttons if that's possible to avoid making many of them too.

Taifun

unread,
Nov 14, 2014, 4:22:14 PM11/14/14
to mitappinv...@googlegroups.com
this is very cumbersome, there is a lot of redundancy, you should work with lists!
as already said, see here  Building apps with many screens

I recommend you to first do the tutorials http://appinventor.mit.edu/explore/ai2/tutorials.html to learn the basics of App Inventor and follow the
Reply all
Reply to author
Forward
0 new messages