I bult a Tic-Tac-Toe game for Android phones tonight using App Inventor. I didn't have to write a single line of code but I was still able to use logic such as whether to show an X or an O based on whose turn it is. I also included a reset button that clears out all the X's and O's when clicked.
As I mentioned, I didn't write a single line of code. To build the layout, you just drag and drop components on the visual editor. Then when you want to handle events (such as a button click) you drag and drop events onto the "Block Editor". The Block Editor is also used for creating variables, if statements, etc.
There are three main parts of App Inventor:
App Inventor Extras: A program you can install on your computer to allow for viewing the app faster on your phone. (This isn't required if you are willing to download the app and install it over and over again to see what it looks like.) The Visual Editor: A website you load in your browser. The Block Editor: A java…
TinyWebDB is a component in App Inventor for Android that lets your app communicate with a web page in order to set or retrieve values, rather than storing them on the phone itself.
I wanted to know what the TinyWebDB component sends to the web page when it tries to set or retrieve values, so I used Kodingen this morning to write a PHP script that takes the form fields and values sent to the page and writes them to a file.
Here is what I found:
TinyWebDB.StoreValue sends these parameters:
TinyWebDB.GetValue sends this parameter:
So if you write your own PHP page for TinyWebDB to connect to, you can know if TinyWebDB is trying to store a value if the "value" key exists in the $_POST array. If the "value" key doesn't exist in the $_POST array then you know that TinyWebDB is only trying to retrieve the value for the given tag.
As an alternative to using the method outlined by Google, you could use TinyWebDB with your own script written in any web programming …