Hi everybody
First
of all thanks for the knowledge I am getting reading and watching in
this page. I am not an informatic at all but I am making some
progress :)
I am working in an app, a big quiz, and I have
a couple of doubts.
1) What is the limit for elements in a
list? I mean, if I use a list of 2.500 questions the app will work
too slow ?(the only operations needed are searching for a number in
the list, random, random in an integer…)
I ask this
because there will be different levels of difficulty in the quiz and
I think about two ways:
A) Making only one big list with
ALL the questions. Then, depending on the level (I can use a
‘variable’ for this) the app will use a part of that list
(questions 1 to 50, 51-100 for example).
B) Making a
variable and work with separated lists in the same screen (each of
300 questions, for example).
If my app has 10 levels both
options would require a 9 or 10 ‘if/thenS’ for the app to know
where it has to search for questions. Is it too much?
2)
All the gifs I am using are in the web (basically my google docs) to
avoid the ‘out of memory common issue’ . It is working great in
my trials and I keep the size of the app in less than 2mbs. However,
problems are arising, I would like to add many mp3 archives for some
questions and cannot do that by linking to my google docs (or I am
not able to). I have tried with the ‘sound’ element and with the
‘player’ as well but the mit app does not read/play the link.
Then the only solution for me is to try to make a ‘only once
downloading’ mp3 arvhives when the app is running for the first
time or is it possible to link audios the same way than images? (I
would prefer this, I am afraid I would not be able to ‘code’ the
‘downloader thing’).
Thanks in advance and sorry for
my English.