Skip to first unread message

Οδυσσεας κολας

unread,
Jun 20, 2016, 12:40:50 PM6/20/16
to MIT App Inventor Forum

Hi! I have made an application made by the inventor app to control devices at home with the use of arduino via bluetooth.Everything Works great, just want between the buttons to put images that will show me that when I press the buttton on to light up the yellow lamp ( image2) which is located inside the lamp (image1) .And when I press the button off  i want the appearence of image1 which shows that lights is off!To be specific,when i push the button on i want the image2 to appear and when i push the button off i want the image1 to appear!

Taifun

unread,
Jun 20, 2016, 2:13:29 PM6/20/16
to MIT App Inventor Forum
when i push the button on i want the image2 to appear and when i push the button off i want the image1 to appear!
use only one image component and set the image.source to image1.jpg or image2.jpg using an if statement

A very good way to learn App Inventor is to read the free Inventor's Manual here in the AI2 free online eBook   http://www.appinventor.org/book2 ... the links are at the bottom of the Web page.  The book 'teaches' users how to program with AI2 blocks.
There is a free programming course here http://www.appinventor.org/content/CourseInABox/Intro  and the aia files for the projects in the book are here:  http://www.appinventor.org/bookFiles  
How to do a lot of basic things with App Inventor are described here:  http://www.appinventor.org/content/howDoYou/eventHandling  .

Also do the tutorials http://appinventor.mit.edu/explore/ai2/tutorials.html to learn the basics of App Inventor, then try something and follow the
 Top 5 Tips: How to learn  App Inventor

You will not find a tutorial, which does exactly what you are looking for. But doing the tutorials (not only reading a little bit) help you to understand, how things are working. This is important and this is the first step to do.

Taifun

Trying to push the limits of App Inventor! Snippets and Tutorials from Pura Vida Apps by  Taifun.         



Reply all
Reply to author
Forward
0 new messages