What is the purpose of this application?
After completing the application you will be able to:
- dealing with the (Inventor) interface for programming
applications and navigation in the application environment of interface
design -editor of the blocks -private
balandroid emulator.
- add multiple lists.
- Add sound and image.
- Add the sensor.
Now here we go-
1.click on the button (hear the sound)
- Enter the URL (Inventor) from here press Invent log by your account on Google
- New option and then we write the name of the project let Funnyball
- Download any ball image from any website as will as any sound you want.
- We pull the button of Palette menu on the left and upload the image that you download.
- Then rename the button from the right menu (Properties).
- Add sound from the left menu Palette.
- Open the editor blocks that located above the right menu Properties
- save the file and press to run it, this application is ( Java application) will show editor window blocks.
- From (My menu Blocks) pull the Button1as in the following image:
- when we press the ball will the sound will played as will
- You can now test the application from the option (Package for the phone) on the right top side of the main interface
2.output the (random replies)
- We will return to the main interface for the application and drag the (vertical
arrangement)
to coordinate and arrange the buttons vertically.
- We
drag and drop (label) from the left palette menu and
modify the text message label that will appear on the screen, "Ask
the Magic question a 8-Ball" as in the following image
- We pull for another sticker label 2 and put it next to the previous
poster, we call "the Magic Touch 8-Ball to receive your answer."
now go to the Editor Blocks to add and set the blocks (set Sound1.Play Label2.Text when Button1.Click) then arranged as in the following
- From (Built-In) menu choose the following blocks and arrange them as follows:
pick random item set Label2.Text Sound1.Play
- Once again from (Built-In) menu choose the following blocks:
make a list pick random item text make a list text make a list pick random item
now it will add the replies that will appear when the button is pressed.
3.shake the phone-getting prediction
- Go back to the main interface of the Sensor that we designing and from the option in the
left menu choose AccelerometerSensor palette and drag it to the middle of the screen
- Go to (My blocks) menu and select AccelerometerSensor.Shaking.
- We take previous blocks ( when Button1.Click) and placed in the block (when AccelerometerSensor).Shaking.
- then delete the (when Button1.Click)
Now we
have finished the design of the application and it is now time to
install the software on the phone and tested through option Package for
the phone in the main interface of the designer.
If you have any question, just put it in your comment.

















0 comments:
Post a Comment