Can I use MIT App Inventor in creating my app?

So, as I am doing the tutorials of this app, I encountered some problems, and I don't know what I'm doing wrong, can you guys help me? I don't know how will I explain this, but this is what happening and this is the screenshot of my blocks.

So it's working in Aglaonema Plants, but when I chose the plants under the Snake Plant Category, it output the last type of plant I chose on Aglaonema Plant Category.


A guess. It might be your refresh Procedure calling Aglanonema?

Note you call 5 Procedures in Aglanonema but do not in any other catagory. What happens if you request Snake Plant first? Does the next selection work properly?

I just forgot to remove that.

Um, this is what happens if I chose snake plant first, and when I try to pick again on aglaonema.


if I chose Snake Plant first.

I really tried to think what can I do, I just really don't get why it keeps happening, don't know what to do anymore. Hope someone can help me.

  • consider sharing your aia and/or ALL your Blocks; someone might try to debug the app for you
  • copy your Project as.... Delete all the code except what is needed to select two categories in the copy of the app and debug yourself . The app should be easier to debug if you use a minimal number of code Blocks to make it work. When you get it working, smile.
  • post the code in your call 'plant_name'.Refresh Blocks. It is not clear where this information comes from. Are you using a ListView renamed TutorialCategory to access a database ? A guess: What might be happening is your app does not provide sufficient time to allow execution and you need a Clock to slow down execution. What kind of database are you using?

Your videos are interesting; unfortunately they don't help someone who does not have the aia understand what might be wrong.

I didn't know that. Really?

That info is ancient, MIT have upgraded cloudDB since then.

1 Like

Oh I understand now, that's a quick update!

Regardless, for production, users should provide their own redis server implementation for cloudDB blocks.

1 Like

Oh ok! sorry 'bout that, here's the aia file.

Tutorial.aia (10.3 KB)

You can start here

and replace the wrong descriptions with the correct descriptions. :cry: and some things will start to work. :slight_smile:

1 Like

Is it possible to replace these with procedures?

I would structure this differently but what bianchix coded can work. Procedures? Sure but I am not sure there would be anything to gain. Rather he could eliminate quite a few blocks by deleting some blocks everywhere and using two blocks outside the conditional if provided that every one of his conditionals are executable. If all the conditions are not possible, placing the two Blocks outside the if would create issues.

Perhaps you could offer advice on how to use Procedures in this instance. I don't see much room for improvement but... There are always several different ways code can be structured to be effective.

See if you can also locate the several other places he still has issues and can eliminate code. He is a beginner and even experienced coders refactor their initial code to improve readability, avoid redundancy and improve execution. :slight_smile:

2 Likes

Oh I get it, I might use procedure too. Wait, I'll just perform that and see what will happen. Thank youuu.

Nothing happens. t's still the same, I can't.:sob:

I think, I know the prob. I made it work without clicking the proceed button. After picking the type of plants it automatically proceed on the tutorials, I just need to call each procedure under the listview.:joy:

2 posts were split to a new topic: My Apps on Play Store