Last week we covered how toast happens in Android Studio. Today, we’re going to make it a tad more dynamic with an if/else statement. Going back to this Riddler App, I want to add hints for the user if they can’t guess the answer outright. Quick reminder, our test riddle was “What has a neck but no head?” Most people start guessing insects for that one (isn’t an earthworm basically all neck? you might argue), but the answer we’re looking for is “A Bottle.”
To keep the mystery alive, we’re going to keep hints semi-living creatures related. If a user hits the Hint button once, a toast message will pop out reading, “It has no fingers or toes either.” Otherwise, the toast will say, “And lives all over the world.”
Today’s tutorial is a continuation of How to Make a Genuinely Basic App. All we’re doing is adding a method to give a new button a job. This is the coding equivalent to dipping a toe in the water so as to not become overwhelmed at the sheer horror of all the java inside a basic project in Android Studio.
The method of choice for our experiment—toast.
Continue reading “Java: How to Add Toast to an App”
I’ve been on siesta for about a month now, so today I’m starting a new series. This one is going to be an experiment in building language-learning scripts.
Picking up a second language is really friggin’ hard. There are apps, but those seem to be tailored for total beginners. I took Spanish in high school, so I remember a lot of the rules. I don’t want to build from the ground up. I want something closer to a crash course. An interactive one.
So I turned to Processing.
Continue reading “Processing: How to Script Spanish Verbs and Pronouns”
Well, I’ve clearly been doing graphics wrong ALL MY LIFE because I never knew Processing was a thing. Now that I’m aware, I’m attempting to rewire my brain for it.
Continue reading “Processing: How to Code a Grayscale Cipher”