Magic 8 ball app for windows phone

You have now built an app! To test that it works, you either have to launch an emulator, or connect to a phone. Go back to the Setup Instructions if you do not have a phone or an emulator running. Now that we've gotten the button to perform an action play a sound , we want to extend that action to include giving the user a prediction.

First we'll need two labels: Label1 will display the instructions, and Label2 will display the chosen prediction. We'll use blocks to program a "list picker" to choose from a list of predictions. Each time the button is clicked, the app will change the text of Label2 to display the chosen prediction. Now for the fun part! You're going to make a list of predictions and program the button to pick one item from the list and display it inside Label2. The button will also still play the sound that you programmed in Part One. Here's how to do it You've got a Magic 8-Ball App!

Now your app is fully functional and will predict the future with absolute certainty. Test out that this works, and then come back for some challenge tasks to make the app even more fun. Click on the picture of the 8-Ball, you should see one of your answers displayed in the Label2. Text field, followed by the sound.

Tap on the picture of the 8-Ball, you should see one of your answers displayed in the Label2. Even though you have a working Magic 8-Ball app, there is a way to make it even more fun. You can use the accelerometer component to make the phone respond to shaking instead of responding to a button click. This will make the app much more like a real Magic 8-Ball toy. This part can only be done with an actual phone or tablet equipped with an accelerometer. If you are using an emulator, skip this part and go to Challenge 1 instead.

From the Sensors palette, drag over an AccelerometerSensor sensor component. This is the only new component you need, so go on over to the Blocks Editor to change your program. When you shake the phone it should show an answer and play a sound. Your app would disappear if you were to disconnect your phone from the Blocks Editor. This is because the app is still stored on the App Inventor server and not on your phone. Follow these instructions to package your app to your phone or to make an ".

Or, if you want to make your app even cooler, try the challenges below. Instead of or in addition to making the prediction appear as text, can you make the 8-Ball speak it aloud? If you'd like to work with this sample in App Inventor, download the source code to your computer, then open App Inventor, click Projects , choose Import project. Skip to main content.

Social Icons. Lesson One: Navigate the App Inventor environment: Outline Set up computers and phones or emulators. App Inventor Designer To open the App Inventor Designer window, open a new tab or window in your browser and go to http: See setup instructions if you are not sure how to sign in. If you have already made an app such as Hello Purr , you will automatically be directed to the Designer with the last project you worked on showing. Click "Project" in the upper left corner of the screen and then "My Projects", which will take you to your list of projects.

Click "New Project" and name your project something like "Magic8Ball" note: Download one image and one sound file from below to be used in your app. Right click control-click on the link of the image or sound, then choose "Download" or "Save As". Save the media files to a convenient location that you will remember. If it is not, click to open it. Drag a Button component over to the Viewer 1. Set the button image to an 8-Ball image: Click on your newly added button to see its properties in the Properties pane on the right. Under "Image" click on the word "None Click the "Upload File" button and browse to where you saved the 8-Ball image.

Go to the text field in the Properties pane and delete the display text of your button component 4. From the Media palette, drag over a Player component onto the Viewer pane 1. The Player component plays sound files.

Magic 8-Ball Tutorial

Set the Player component's source file: Click on your newly added Player component to see its properties in the Properties pane on the right. Under "Source" click in the small box on the word "None Click the "Upload File" button and browse to where you saved the sound file. You have now completed the work in the Designer for Part One of this app.

Magic 8 Ball - Free download and software reviews - CNET

It's time now to go over to the Blocks Editor to program the behavior of these components. Blocks Editor In the upper right corner of the Designer, click on the Blocks button. Your blocks should now look like this: If you don't hear the sound, first be sure you have the volume turned up on your device or computer if using emulator.

Also, make sure your device has an SD card. App Inventor stores media files to the SD card. Part Two: App Inventor Go back to the Designer window in your browser and add some new things to your app. To get started we need to open Xcode. You can open it either directly from the Applications folder, clicking it in Launchpad or through Spotlight. To create an iOS app we need to create a project. You should see this screen, which will help you choose a project template.

Magic 8 Ball for App Inventor 2

You should see a Save file dialog box. Choose a place to save your project ideally where you can find it later , unselect the Create Git repository checkbox, and click Create. Xcode is quite a complex utility and it can be overwhelming at first. Lets break the workspace down into some sections to make it easier to understand. The Navigator is where you can switch between the projects in your files, search for things in your project, etc.

The Utilities area is where you will see information about files and objects in your project. The Toolbar is where you can see the status of your project in the center , display and hide the Navigator and Utilties areas far right , change the layout of the Editor right and run your app left.

The AppDelegate file is the heart of our app and is written in Swift code. It receives events from the operating system e. Every iOS project has one AppDelegate. We wont be changing anything in this file for this project. View Controllers control what is displayed on the screen e. A project can have many View Controllers, but our project will only have one. This file is also written in Swift.

A storyboard is a visual way to create and edit the interface of your app without writing any code. This makes creating simple apps much simpler. A single storyboard can link to many different View Controllers and make it easy to switch between them. Storyboards may be the easiest, but are definitely not the only way to create interfaces you can also make them with code or XIB files.

Eight Ball Free

The Main. It is connected to the ViewController. This is a file that makes it simple to store and organize binary files e. This storyboard appears while your app is opening. We might not even see it for this project, because it is very simple and should launch quickly.

We wont be making any changes to this file. This group shows any of our project targets e. Clicking it wont open anything in the Editor. At this point, we have a fully functional though rather uninteresting app, so lets test it in the iOS Simulator included with Xcode. If everything looks like the picture above, click the Play button and Xcode will build your project and then open the iOS Simulator you should see this icon appear in the Dock. The simulator window will likely appear above the Xcode window, if not click the Simulator icon in the Dock.

Confusingly enough, you will probably see a black screen when the simulator first opens, which may be visible for quite a while depending on the speed of your computer. Which is the very familiar iOS booting screen. But only seeing the very enlarged top part of the iPhone screen is probably not useful, so lets change the zoom so we can see the whole screen. Lets get started with our interface which we will do primarily in the Main.

In the Navigator area the left side bar click Main. This screen is called Interface Builder and it has two parts. The first thing that is wrong is that a Magic 8-Ball is of course black and not white. To do this click anywhere in the big square in the center of the editor except the top bar. The border will change color to black, the Document outline will also expand and show the selected element. You can also select that view by selecting it in the Document outline. Though a lot of the options in this menu might not make sense to you.

You should be able to find and change the background to Black Color with ease. Click the text or the blue arrows to get a drop down of common colors, or the rectangle filled with the color itself to get a color picker. If you want, you can run your app and the background color should change. In the bottom of the Utilities area there is a small area that holds different libraries for us to use. Click the Object Library button and find Label you can use the search bar at the bottom to find this faster than scrolling through the list.

Ideally we want it near the top and in the middle. Guides will appear to help you place things in the center and away from the menu bar. To change the text in the box, double click the label and it should select the text. Drag it back to the snap point. Then look for these icons in the bottom right corner of the editor.

Click the second from the left Align and a menu will pop up. Select Horizontally in Container. Leave the number at 0. Then click Add 1 constraint. This will keep our label centered. This tells the label that it should be pinned to the object above it in this case 8 points from it. Once it looks like the object picture above, click Add 1 constraint..

  • Instructables?
  • [App][Free] Magic 8 Ball.
  • mobile suit gundam 00 the movie a wakening of the trailblazer watch online free.
  • Get Magic Ball (Free) - Microsoft Store;
  • Stick Nodes: Stickma....
  • Create Button?

This time at the bottom of the screen. Go back to the Object Library in the bottom right corner, select another label and drag it to the bottom center of the screen. Click the label. In the Utilities area you should see the following. Click the and you will see a menu of font options for your label.

Then click done. This will align the text inside the label box not on the screen like above. To fix this, click and drag one of the squares at the corner. Just as we did before with the label at the top before, set it to be centered using the align menu.

Publisher's Description

As shown below. Remember to click Add 1 constraint. The dotted box that you see above, shows that there is a difference between what you see in the preview and what will appear when the app runs. We need to have a blue triangle where our fortunes can appear. Next open Main. An image view is a container that holds a photo. Right now our container is empty. In the lower right corner of the Editor click the Pin icon. Click both the height and width buttons, and enter for each. Click Add 2 Constraints. First drag it to the center so the horizontal and vertical dotted lines appear.

Next click the align icon in the bottom right hand corner of the editor and click Horizontally in Container AND also Vertically in Container then click Add 2 Constraints.

  • Android Appinventor Tutorial: Magic 8-Ball App: 3 Steps.
  • Magic 8 Ball freeware for Windows Mobile Phone..
  • Intro To iOS MeetUp Recap & Magic 8 Ball App Tutorial - TurnToTech?
  • hack flick home run android.
  • download google voice for blackberry 9900.

With the image view selected, in the Utilities area we are going to switch to the Attributes inspector. If you click the blue arrow next to the Image field you should see our triangle image in the list.