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…
I was trying to launch a sample app on the newly released Ionic 2 Release Canditate. When I ran the command sudo ionic run ios --emulator, I encountered an error similar to this one which I shorted for display here:
An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=163): Invalid device state Error: ENOENT: no such file or directory, stat '/Users/.../Library/Logs/CoreSimulator/.../system.log'
After searching the internet for solutions, I was able to overcome the error by taking the following steps:
Install the latest update to Xcode.Run xcode-select --install to make sure that Xcode command line tools is installed (as recommended by Mike Hartington on the Ionic Github page.)Run sudo chown -R username /Users/username to update my permissions which makes it so that I don't have to run sudo when running ionic commands (as recommended by Zac Vineyard on his blog.)Run ionic run ios --emulator (this time without using sudo).
Thank you for…
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 …