I tried to look for this kind of issue before posting this, but couldn't relate to my issue...
I was building an App to survey the certain vulnerable people, who wasn't in the system and trying to bring them into the system for benefits given by government but need certain documents and their will be difference in family members size too. Here what iam trying to do is to get all the details of the family members who has that kind of documents and who doesnt. So for every question i have validated the user not to over look or skip the question without entering any family member. So, if validation is fulfilled then it will save in the database...theirs repeated code, to check for every family member and at different sizes of family members, so the code is repeated for every family member and at the end for all the family members while saving the data. I thought that its unable to build the App, cause of large code block size and to stop that repeation of those lengthy codes, i have used the procedures. but its still not able to build the App.
I would appreciate if you could help me in reducing the blocks using different ways...
Where is the problem to build the app on https://code.appinventor.mit.edu/ ?
Do it and check if it works on your test devices.
Yes, basing on the requirement and as per the knowledge and previous experience, i have in building these kind of Apps, i have to use those many components. so that the App will be easy to understand and use by the User....I know their would be different methods to build an App and this is a longer version of building it. I would appreciate if you could help me in building the app with less components...
I have imported my App in that https://code.appinventor.mit.edu/, but couldnt see all the components..as i said it might be broken or couldn't export complete aia file....
And again...
At the moment I don't have time, one question though did you continue to build on the previous fixed file from this thread or did you continue to building from the broken file
Yes, may be, I didn't test the APK, but he should do it...
Actually, i have tried to build it from ur fixed file, but couldn't so i have used my backup file as its the extension of my previous project...so i have build it upon that backup file...
ok..sure i will do it...
Administering a questionnaire is not much different from admistering a quiz.
There are ways to keep the questions and answers separate from the code, reusing components and keeping everything in lists and tables.
Here is a sample for you to study:
You can load survey questions and their options from a file in your Media folder.
Ok..Thank You...
I do have couple of doubts...like first one is if i want to capture an image in offline mode wihle entering the data in the App, how to save the image in the App of the Android Phone and upload it along with the csv file into database. and the other one is how to duplicate the Screen when to design same components with same blocks but for different members? Is their any option for it?
We should be able to reduce the Blocks substantially, but we need to understand the details of the survey - your code is difficult to follow with that regard.
So, starting from scratch, you are asking each person if they have specific documents and recording which ones they have and which they don't (if these documents have a bar or QR code that would be helpful).
Is it each person or are the benefits only related to families?
Basically your App should work like this:
- Gather information
- Record information gathered
- Information can be viewed via the same Screen Form it was gathered.
You would also need to give each information set a unique ID and give the person/family a copy of that ID. Privacy needs to be considered too - database access needs to be restricted.
Edit: I'm not sure it is worth Boban's time fixing your file because the best approach is to re-write the App, starting with a schematic on paper that defines how it should be built in order to be fit for purpose. If the App is to be reliable, we must endevour to keep it simple.
That's easy enough but it leads to more questions:
How many people are gathering the survey data? If the work is to be done by tens or hundreds of people that needs to be taken into account in the App - for example when applying a unique ID to an information set. Plus the more people involved in gathering, the greater the importance of security.
The image would be saved to the phone, not the App? When uploaded to a database, it would be encoded in B64 format - a text based image description that is not human readable. That means it could potentially become part of the CSV string (not file) saved in the database, but we would need to know more about the database itself, it's capabilities.
This where the number of people involved in gathering survey data is critical to privacy and security. It would be made easier if they used phones dedicated to the survey and nothing else - is that doable?
..... another aspect is - how many people/families will be surveyed? Is this work backed by the government or is it independent of them?