Overview
This app is a fortune cookie simulator app that tells your fortune for you.
The user can change the font by pressing buttons and shake or press the fortune cookie to reveal their fortune.
The user can change the font by pressing buttons and shake or press the fortune cookie to reveal their fortune.
Developers
This app was developed by Andrew Kang, Yuting Pi, Sangjoon Bek,and Songha Kim.
The app page was posted on the website in November 11,2015
The app page was posted on the website in November 11,2015
Design
The fortune cookie app is an app that allows you to receive fortunes by pressing the button inside the app.
1. The user may press the sealed fortune cookie or shake their phone to receive their fortune.
2. The user may choose to change their font of their text by using the +, -, or reset button.
3. The user may reset the app by pressing the Try again? button.
4. When the fortune cookie is clicked on, a cracking sound is heard and the image changes.
1. The user may press the sealed fortune cookie or shake their phone to receive their fortune.
2. The user may choose to change their font of their text by using the +, -, or reset button.
3. The user may reset the app by pressing the Try again? button.
4. When the fortune cookie is clicked on, a cracking sound is heard and the image changes.
Implementation
Components
Event Handlers
- Screen1 : The screen is the mainboard of the app that has the background image "SakuraBlossoms2.jpg"
- FortuneCookieButton : The image button of a fortune cookie that triggers to receive the fortune text
- FortuneCookieText : The label that shows the random fortune when the user presses the button or shakes the phone.
- HorizontalArrangement : The horizontal arrangement that keeps the font changing buttons together
- MinusButton : The button used to decrease the font of FortuneCookieTextLabel
- PlusButton : The button used to increase the font of the FortuneCookieTextLabel
- Font_Size : The label that shows how big is the current font size
- ResetButton : The reset button resets the default font size to 14 points
- TryAgainButton : The Try Again button resets the fortune cookie image and deletes the fortune cookie text
- ShaketoOpenLabel : The label text that shows "Shake or Press to reveal your fortune"
- CrackingSound : The sound file that plays the cracking sound when the user presses the fortune cookie button.
- AccelerometerSensor1 : The sensor that senses if you are shaking your phone
Event Handlers
- FortuneCookieButton Click : When the FortuneCookieButton is clicked, the image changes and the CrackingSound file is played
The FortuneCookieText is shown with a random text that is in the list of the fortunes texts - PlusButton Click : When the PlusButton increases the font size of the FortuneCookieTextLabel by 1 point.
- MinusButton Click : When the MinusButton decreases the the font size of the FortuneCookieTextLabel by 1 point if the font size is higher than 1 point
- ResetButton Click : The font size of the FortuneCookieText is reset to 14 points
- Phone Shake : When the phone is shook, the image of the FortuneCookieButton changes and the CrackingSound file is played
The FortuneCookieText is shown with a random text that is in the list of the fortune texts. - TryAgainButton Click : When the TryAgainButton is clicked, the image of the FortuneCookieButton is changed back to "cookiefinal.png" and the text of the FortuneTextLabel is deleted
Development Process
This was the second independent app that the user created.
The app was motivated by the previous apps (Magic 8 ball app) that the user learned by using appinventor2.
The most difficult part of the app was finding out how to change images when the button is pressed.
Touches could be made by having the including more fortunes or adding a fortune cookie breaking animation to the app.
The app was motivated by the previous apps (Magic 8 ball app) that the user learned by using appinventor2.
The most difficult part of the app was finding out how to change images when the button is pressed.
Touches could be made by having the including more fortunes or adding a fortune cookie breaking animation to the app.
Download
![]()
|
Download the app using the QR code or the download link above.