T W

unread,
Sep 1, 2015, 1:36:37 PM9/1/15
to MIT App Inventor Forum
I have an app with multiple pages. On one of the pages I want it to display the current time.  Does anyone know how to do that. Every tutorial or post I seem to find is all about timers/stopwatches, etc. 

Any help would be appreciated.

Thanks

Italo

unread,
Sep 1, 2015, 1:45:38 PM9/1/15
to MIT App Inventor Forum
I use this: 


T W

unread,
Sep 1, 2015, 1:48:03 PM9/1/15
to MIT App Inventor Forum
Thank you.  But what do I put on the designer screen.  How do I designate where I want the clock to be displayed?

Taifun

unread,
Sep 1, 2015, 1:56:26 PM9/1/15
to MIT App Inventor Forum
what about using a label?

btw. probably simpler it is to use the Clock.FormatDate block together with the pattern HH:mm:ss see also https://puravidaapps.com/snippets.php#2getdate and the available patterns here https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html

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.         



Italo

unread,
Sep 1, 2015, 1:56:27 PM9/1/15
to MIT App Inventor Forum
As you can see on the example I posted, it uses a single LABEL component, and a CLOCK component (set at least to 1000 ms). 
It's up to you where to put it in the screen (anywhere).

Have you followed any basic tutorials yet? Looks like you didn't, so please do it and have fun creating.

T W

unread,
Sep 1, 2015, 2:08:41 PM9/1/15
to MIT App Inventor Forum
thank you so much.  I see that now.
Reply all
Reply to author
Forward
0 new messages